3 ms·
Complaining about microbenchmark performance, then perf benchmarking in a completely unscientific way, is pretty bad (These are non-quiesced machines, etc) The
by DannyBee 11y ago
Complaining about microbenchmark performance, then perf benchmarking in a completely unscientific way, is pretty bad
(These are non-quiesced machines, etc)
The error bars show it's probably slower, but i'm pretty sure he's not going to get valid measurements to 0.002s by running it once with time without doing things like disabling CPU throttling, etc :)
Of course, looking at julia's microbenchmark for C, they had to do a bunch of things to get the compilers to stop optimizing away their benchmarks, so that should tell you something right there :)
The example they give of sprintf calls is completely misleading, since sprintf_chk is going to be several hundred instructions itself.
Follow https://github.com/lattera/glibc/blob/master/debug/sprintf_chk.c https://github.com/lattera/glibc/blob/master/debug/sprintf_c... all the way down the rabbit hole :)