Change to loop_iterations
This commit is contained in:
1 parent
a73a463936
commit
f46a98249f
4 files changed
+8
-8
No files matched your search
@@ -1,12 +1,12 @@
|
||||
#include <nanobench.h>
|
||||
|
||||
#include "../src/loop_iterations.h"
|
||||
#include "../src/loop_iterations.hpp"
|
||||
|
||||
int main() {
|
||||
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)
|
||||
bench.run("volatile loop to " + std::to_string(loop_iterations), [&] {
|
||||
for (volatile int i = 0; i < loop_iterations; i = i + 1)
|
||||
;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user