forked from weaselab/weaseldb
Actually use loopIterations
This commit is contained in:
1 parent
5314448480
commit
50d873e8eb
1 file changed
+2
-2
@@ -1,10 +1,10 @@
|
||||
#include <nanobench.h>
|
||||
|
||||
int main() {
|
||||
constexpr int loopIterations = 1200;
|
||||
constexpr int loopIterations = 800;
|
||||
ankerl::nanobench::Bench().run(
|
||||
"volatile loop to " + std::to_string(loopIterations), [&] {
|
||||
for (volatile int i = 0; i < 1200; i = i + 1)
|
||||
for (volatile int i = 0; i < loopIterations; i = i + 1)
|
||||
;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user