Performance Measurement

Lesson overview

Topics covered: clock, gettimeofday, profiling, benchmarking.

Performance Measurement

clock() from time.h, elapsed time
gettimeofday() POSIX high-resolution
Profiling: gprof, perf, compiler -pg flags
Benchmarking: repeat runs, average time

Article author: Arthur Isaev

Banner image