Hazard pointers: Add support for thread local lists of retired objects and other...
[folly.git] / folly / experimental / hazptr / bench / HazptrBench-NoAmb-Tc.cpp
index 4fb420b2acd534c47c622759dce6e77df3a2d855..4c78eaf8ddde5c63ffb9cf4df2d184e37f380c28 100644 (file)
@@ -16,6 +16,7 @@
 
 #define HAZPTR_AMB false
 #define HAZPTR_TC true
+#define HAZPTR_PRIV true
 
 #include <folly/experimental/hazptr/bench/HazptrBench.h>
 #include <folly/portability/GFlags.h>
 
 using namespace folly::hazptr;
 
-int nthreads;
-int size;
-
-BENCHMARK(no_amb, iters) {
-  run_once(nthreads, size, iters);
-}
-
-BENCHMARK(no_amb_dup, iters) {
-  run_once(nthreads, size, iters);
-}
-
 int main(int argc, char** argv) {
   testing::InitGoogleTest(&argc, argv);
   gflags::ParseCommandLineFlags(&argc, &argv, true);
-  std::cout << "---------------------------------------------- No AMB - TC\n";
-  for (int i : nthr) {
-    nthreads = i;
-    for (int j : sizes) {
-      size = j;
-      std::cout << i << " threads -- " << j << "-item list" << std::endl;
-      bench("no amb - tc                 ", i, j, 0);
-      bench("no amb - tc - dup           ", i, j, 0);
-    }
-  }
-  std::cout << "----------------------------------------------------------\n";
+  benches("no amb -    tc");
 }