Benchmark Measure the full runtime $ time <your_command_here> Measure the percentage of each function You can use perf to measure the percentage of CPU time spent in each function. Perf Note