Benchmarking Your Tool
Before you start thinking about improving the performance of your tools or programs, you first need to determine what the current status is and define a baseline for comparison. For this exercise, we’ll state that performance means how fast the tool takes to process its workload. Perhaps it’s currently good enough, but we may not know. To determine the current state, we need to measure it.
In the Linux/Unix world the quickest way to determine how fast your applications works is by using the time command. The time command executes the application and prints out how long it took to run. For example, to measure how long your tool takes to process data from the two test files in the testdata directory, run this command:
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access