Add threading_performance_report.md
This commit is contained in:
10
bench_volatile_loop.cpp
Normal file
10
bench_volatile_loop.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <nanobench.h>
|
||||
|
||||
int main() {
|
||||
ankerl::nanobench::Bench().run("volatile loop to 500", [&] {
|
||||
for (volatile int i = 0; i < 800; i = i + 1)
|
||||
;
|
||||
});
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user