News for hackers. Stuff that matters.
Re:Optimising Memset and Memcpy by gpderetta on Sunday November 28, 2021 @07:28AM (#29368394)
Also the benchmark do not seem to use the same set of sizes for all benchmarks (nor use a fixed random seed) so repeatability and comparability seem questionable.

I guess if you run it often enough it could still give useful numbers, but I understand the author is picking the best run.

Also I don't see to be any attempt at avoiding compiler optimisations.

Benchmarking is hard

Re:Optimising Memset and Memcpy by nadav256 on Sunday November 28, 2021 @07:53AM (#29368544)
Grep the code for rand_reset. The code uses a fixed seed, fixed sizes for all programs, stable nop baseline, etc. also the pointer indirection blocks compiler optimizations.
Re:Optimising Memset and Memcpy by gpderetta on Sunday November 28, 2021 @12:12PM (#29370631)
Indeed. i looked at the benchmark itself, but not the RNG.