|
|
|
|
|
by dan-robertson
543 days ago
|
|
Re VM warmup, see https://tratt.net/laurie/blog/2022/more_evidence_for_problem... and the linked earlier research for some interesting discussion. Roughly, there is a belief when benchmarking that one can work around not having the most-optimised JIT-compiled version by running your benchmark a number of times and then throwing away the result before doing ‘real’ runs. But it turns out that: (a) sometimes the jit doesn’t run (b) sometimes it makes performance worse (c) sometimes you don’t even get to a steady state with performance (d) and obviously in the real world you may not end up with the same jitted version that you get in your benchmarks |
|
Benchmarks can be a useful tool, but they should not be mistaken for real-world performance.