Move bench_volatile_loop to benchmarks/

This commit is contained in:
2025-08-25 13:15:59 -04:00
parent 3d0c2f57cb
commit 5314448480
3 changed files with 13 additions and 11 deletions

View File

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