Created
February 24, 2017 02:56
-
-
Save ahh/278337744eedf7e93ad0e4bad8883cac to your computer and use it in GitHub Desktop.
Benchmark example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static rcu::View<char> shared; | |
void BM_View(int reps) { | |
for (int i = 0; i < reps; ++i) { | |
auto snapshot = shared.Get(); | |
// ... do some meaningless work... | |
} | |
} | |
BENCHMARK(BM_View)->Threads(16); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment