|
|
|
|
|
by ______-_-______
1539 days ago
|
|
At the end of the day most people care about wall clock time. It's a real physical value that's easy to understand and easy to compare between systems. Plus, if two functions execute say, 1 billion instructions each, but one spends extra time stalled waiting on IO or data fetches from RAM, you definitely want to account for that in normal benchmarking. Instruction counting is more of a specialized tool but I like to use it whenever I can because it has low variance and makes comparing changes a lot easier. Compare how bumpy these graphs are for instruction count (first link) and wall clock time (second link): https://perf.rust-lang.org/ https://perf.rust-lang.org/?start=&end=&kind=raw&stat=wall-t... |
|