Commit 55e5070f authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Include benchmark for std::atomic

Reviewed By: yfeldblum

Differential Revision: D18926899

fbshipit-source-id: d16c1b5b54a75fe70514f25b648de70ae66b6415
parent ad7bdb31
......@@ -61,6 +61,22 @@ BENCHMARK(TLRefCountFourThreads, n) {
benchmark<TLRefCount, 4>(n);
}
BENCHMARK(TLRefCountTwentyFourThreads, n) {
benchmark<TLRefCount, 24>(n);
}
BENCHMARK(AtomicOneThread, n) {
benchmark<std::atomic<size_t>, 1>(n);
}
BENCHMARK(AtomicFourThreads, n) {
benchmark<std::atomic<size_t>, 4>(n);
}
BENCHMARK(AtomicTwentyFourThreads, n) {
benchmark<std::atomic<size_t>, 24>(n);
}
} // namespace folly
int main(int argc, char** argv) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment