Let WaitIfUpstreamIdle spin long enough to stay saturated by load_tester

This commit is contained in:
2025-08-26 15:37:04 -04:00
parent 6dbf29d1e1
commit 6e48a0ff9a
4 changed files with 24 additions and 11 deletions

View File

@@ -1,12 +1,14 @@
#include <nanobench.h>
#include "../src/loop_iterations.h"
int main() {
constexpr int loopIterations = 800;
ankerl::nanobench::Bench().run(
"volatile loop to " + std::to_string(loopIterations), [&] {
for (volatile int i = 0; i < loopIterations; i = i + 1)
;
});
ankerl::nanobench::Bench bench;
bench.minEpochIterations(100000);
bench.run("volatile loop to " + std::to_string(loopIterations), [&] {
for (volatile int i = 0; i < loopIterations; i = i + 1)
;
});
return 0;
}