There are various ways to prepare test metrics, such as the following:
Gather all the tools needed before testing.
Test as early as possible during software development.
Perform several performance tests for consistency, and determine metric averages.
Define the effective calculation, interpretation, and management of the metrics.
Determine the areas of improvement.