]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Add --benchmark_cooldown flag to mitigate thermal throttling
authorNathan Moin Vaziri <nathan@nathanm.com>
Wed, 8 Apr 2026 01:10:20 +0000 (18:10 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 22 Apr 2026 09:40:56 +0000 (11:40 +0200)
commitee042cb74db8e32a815d0d779df4836d90ec3447
tree2a5a8f3c6fd0174e491dc9f8bb337ffc623280ff
parent8d04aa1f048a252e0aee110abeca35116833de48
Add --benchmark_cooldown flag to mitigate thermal throttling

Adds a --benchmark_cooldown=<seconds> flag that inserts a sleep between
benchmark families. This helps produce consistent results on systems
where sustained workloads cause thermal throttling and CPU frequency
scaling.

Uses a wrapping BenchmarkReporter that sleeps before forwarding results
to the default display reporter.
test/benchmarks/README.md
test/benchmarks/benchmark_main.cc