proxygen
FlatCombiningBenchmark.cpp File Reference

Go to the source code of this file.

Functions

 DEFINE_bool (direct, false,"run direct measurement")
 
 DEFINE_int32 (reps, 10,"number of reps")
 
 DEFINE_int32 (ops, 100000,"number of operations per rep")
 
 DEFINE_int32 (lines, 5,"number of cache lines accessed per operation")
 
 DEFINE_int32 (numRecs, 8,"number of records")
 
 DEFINE_int32 (work, 1000,"amount of unrelated work per operation")
 
 BENCHMARK (no_combining_base, iters)
 
 BENCHMARK_RELATIVE (no_combining_dup, iters)
 
 BENCHMARK_DRAW_LINE ()
 
 BENCHMARK_RELATIVE (combining_dedicated_notc_sync, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_notc_sync_dup, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_notc_async, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_notc_async_dup, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_tc_sync, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_tc_sync_dup, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_tc_async, iters)
 
 BENCHMARK_RELATIVE (combining_dedicated_tc_async_dup, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_notc_sync, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_notc_sync_dup, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_notc_async, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_notc_async_dup, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_tc_sync, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_tc_sync_dup, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_tc_async, iters)
 
 BENCHMARK_RELATIVE (combining_no_dedicated_tc_async_dup, iters)
 
void benchmarkSetup ()
 
 TEST (FlatCombining, folly_benchmark)
 
static uint64_t test (std::string name, bool fc_, bool dedicated_, bool tc_, bool syncops_, uint64_t base)
 
 TEST (FlatCombining, direct_measurement)
 

Variables

static std::vector< int > nthr = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64}
 
static int nthreads
 
static bool fc
 
static bool simple
 
static bool dedicated
 
static bool tc
 
static bool syncops
 

Function Documentation

BENCHMARK ( no_combining_base  ,
iters   
)

Definition at line 43 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

43  {
44  fc = false;
45  dedicated = false;
46  tc = false;
47  syncops = false;
48  run_test(
49  nthreads,
50  FLAGS_lines,
51  FLAGS_numRecs,
52  FLAGS_work,
53  iters,
54  fc,
55  simple,
56  dedicated,
57  tc,
58  syncops);
59 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_DRAW_LINE ( )
BENCHMARK_RELATIVE ( no_combining_dup  ,
iters   
)

Definition at line 61 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

61  {
62  run_test(
63  nthreads,
64  FLAGS_lines,
65  FLAGS_numRecs,
66  FLAGS_work,
67  iters,
68  fc,
69  simple,
70  dedicated,
71  tc,
72  syncops);
73 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_notc_sync  ,
iters   
)

Definition at line 80 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

80  {
81  fc = true;
82  dedicated = true;
83  tc = false;
84  syncops = true;
85  run_test(
86  nthreads,
87  FLAGS_lines,
88  FLAGS_numRecs,
89  FLAGS_work,
90  iters,
91  fc,
92  simple,
93  dedicated,
94  tc,
95  syncops);
96 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_notc_sync_dup  ,
iters   
)

Definition at line 98 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

98  {
99  run_test(
100  nthreads,
101  FLAGS_lines,
102  FLAGS_numRecs,
103  FLAGS_work,
104  iters,
105  fc,
106  simple,
107  dedicated,
108  tc,
109  syncops);
110 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_notc_async  ,
iters   
)

Definition at line 114 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

114  {
115  syncops = false;
116  run_test(
117  nthreads,
118  FLAGS_lines,
119  FLAGS_numRecs,
120  FLAGS_work,
121  iters,
122  fc,
123  simple,
124  dedicated,
125  tc,
126  syncops);
127 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_notc_async_dup  ,
iters   
)

Definition at line 129 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

129  {
130  run_test(
131  nthreads,
132  FLAGS_lines,
133  FLAGS_numRecs,
134  FLAGS_work,
135  iters,
136  fc,
137  simple,
138  dedicated,
139  tc,
140  syncops);
141 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_tc_sync  ,
iters   
)

Definition at line 145 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

145  {
146  tc = true;
147  syncops = true;
148  run_test(
149  nthreads,
150  FLAGS_lines,
151  FLAGS_numRecs,
152  FLAGS_work,
153  iters,
154  fc,
155  simple,
156  dedicated,
157  tc,
158  syncops);
159 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_tc_sync_dup  ,
iters   
)

Definition at line 161 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

161  {
162  run_test(
163  nthreads,
164  FLAGS_lines,
165  FLAGS_numRecs,
166  FLAGS_work,
167  iters,
168  fc,
169  simple,
170  dedicated,
171  tc,
172  syncops);
173 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_tc_async  ,
iters   
)

Definition at line 177 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

177  {
178  tc = true;
179  syncops = false;
180  run_test(
181  nthreads,
182  FLAGS_lines,
183  FLAGS_numRecs,
184  FLAGS_work,
185  iters,
186  fc,
187  simple,
188  dedicated,
189  tc,
190  syncops);
191 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_dedicated_tc_async_dup  ,
iters   
)

Definition at line 193 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

193  {
194  run_test(
195  nthreads,
196  FLAGS_lines,
197  FLAGS_numRecs,
198  FLAGS_work,
199  iters,
200  fc,
201  simple,
202  dedicated,
203  tc,
204  syncops);
205 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_notc_sync  ,
iters   
)

Definition at line 213 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

213  {
214  dedicated = false;
215  tc = false;
216  syncops = true;
217  run_test(
218  nthreads,
219  FLAGS_lines,
220  FLAGS_numRecs,
221  FLAGS_work,
222  iters,
223  fc,
224  simple,
225  dedicated,
226  tc,
227  syncops);
228 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_notc_sync_dup  ,
iters   
)

Definition at line 230 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

230  {
231  run_test(
232  nthreads,
233  FLAGS_lines,
234  FLAGS_numRecs,
235  FLAGS_work,
236  iters,
237  fc,
238  simple,
239  dedicated,
240  tc,
241  syncops);
242 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_notc_async  ,
iters   
)

Definition at line 246 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

246  {
247  syncops = false;
248  run_test(
249  nthreads,
250  FLAGS_lines,
251  FLAGS_numRecs,
252  FLAGS_work,
253  iters,
254  fc,
255  simple,
256  dedicated,
257  tc,
258  syncops);
259 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_notc_async_dup  ,
iters   
)

Definition at line 261 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

261  {
262  run_test(
263  nthreads,
264  FLAGS_lines,
265  FLAGS_numRecs,
266  FLAGS_work,
267  iters,
268  fc,
269  simple,
270  dedicated,
271  tc,
272  syncops);
273 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_tc_sync  ,
iters   
)

Definition at line 277 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

277  {
278  tc = true;
279  syncops = true;
280  run_test(
281  nthreads,
282  FLAGS_lines,
283  FLAGS_numRecs,
284  FLAGS_work,
285  iters,
286  fc,
287  simple,
288  dedicated,
289  tc,
290  syncops);
291 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_tc_sync_dup  ,
iters   
)

Definition at line 293 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

293  {
294  run_test(
295  nthreads,
296  FLAGS_lines,
297  FLAGS_numRecs,
298  FLAGS_work,
299  iters,
300  fc,
301  simple,
302  dedicated,
303  tc,
304  syncops);
305 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_tc_async  ,
iters   
)

Definition at line 309 of file FlatCombiningBenchmark.cpp.

References dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

309  {
310  tc = true;
311  syncops = false;
312  run_test(
313  nthreads,
314  FLAGS_lines,
315  FLAGS_numRecs,
316  FLAGS_work,
317  iters,
318  fc,
319  simple,
320  dedicated,
321  tc,
322  syncops);
323 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
BENCHMARK_RELATIVE ( combining_no_dedicated_tc_async_dup  ,
iters   
)

Definition at line 325 of file FlatCombiningBenchmark.cpp.

References folly::BENCHMARK_DRAW_LINE(), dedicated, fc, nthreads, folly::test::run_test(), simple, syncops, and tc.

325  {
326  run_test(
327  nthreads,
328  FLAGS_lines,
329  FLAGS_numRecs,
330  FLAGS_work,
331  iters,
332  fc,
333  simple,
334  dedicated,
335  tc,
336  syncops);
337 }
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static bool dedicated
static int nthreads
static bool tc
static bool syncops
static bool fc
void benchmarkSetup ( )

Definition at line 341 of file FlatCombiningBenchmark.cpp.

Referenced by TEST().

341  {
342  int numCores = std::thread::hardware_concurrency();
343  std::cout << "\nRunning benchmarks on machine with " << numCores
344  << " logical cores" << std::endl;
345 }
DEFINE_bool ( direct  ,
false  ,
"run direct measurement"   
)
DEFINE_int32 ( reps  ,
10  ,
"number of reps"   
)
DEFINE_int32 ( ops  ,
100000  ,
"number of operations per rep"   
)
DEFINE_int32 ( lines  ,
,
"number of cache lines accessed per operation"   
)
DEFINE_int32 ( numRecs  ,
,
"number of records  
)
DEFINE_int32 ( work  ,
1000  ,
"amount of unrelated work per operation"   
)
TEST ( FlatCombining  ,
folly_benchmark   
)

Definition at line 347 of file FlatCombiningBenchmark.cpp.

References b, benchmarkSetup(), i, nthreads, folly::runBenchmarks(), simple, and string.

347  {
348  if (FLAGS_benchmark) {
349  benchmarkSetup();
350  for (bool b : {true, false}) {
351  simple = b;
352  std::string str = simple ? "simple" : "custom";
353  std::cout << "\n------------------------------------ " << str
354  << " interface" << std::endl;
355  for (int i : nthr) {
356  std::cout << "\n---------------------------------- Number of threads = "
357  << i << std::endl;
358  nthreads = i;
360  }
361  }
362  }
363 }
char b
static bool simple
void runBenchmarks()
Definition: Benchmark.cpp:456
static int nthreads
static std::vector< int > nthr
const char * string
Definition: Conv.cpp:212
void benchmarkSetup()
static uint64_t test ( std::string  name,
bool  fc_,
bool  dedicated_,
bool  tc_,
bool  syncops_,
uint64_t  base 
)
static

Definition at line 367 of file FlatCombiningBenchmark.cpp.

References i, max, min, name, nthreads, folly::test::run_test(), simple, sum(), and uint64_t.

Referenced by folly::Bits< T, Traits >::blockCount(), clause11_21_4_2_a(), clause11_21_4_4(), clause11_21_4_6_1(), clause11_21_4_7_2_a2(), clause11_21_4_7_2_b2(), clause11_21_4_7_2_c2(), clause11_21_4_8_9_a(), TEST(), folly::io::test::TEST(), test_message(), test_message_pause(), test_multiple3(), test_parse_url(), test_scan(), zeroCopyOff(), zeroCopyOn(), and Foo::~Foo().

373  {
374  uint64_t min = UINTMAX_MAX;
375  uint64_t max = 0;
376  uint64_t sum = 0;
377 
378  for (int i = 0; i < FLAGS_reps; ++i) {
379  uint64_t dur = run_test(
380  nthreads,
381  FLAGS_lines,
382  FLAGS_numRecs,
383  FLAGS_work,
384  FLAGS_ops,
385  fc_,
386  simple,
387  dedicated_,
388  tc_,
389  syncops_);
390  sum += dur;
391  min = std::min(min, dur);
392  max = std::max(max, dur);
393  }
394  uint64_t avg = sum / FLAGS_reps;
395 
396  uint64_t res = min;
397  std::cout << name;
398  std::cout << " " << std::setw(4) << max / FLAGS_ops << " ns";
399  std::cout << " " << std::setw(4) << avg / FLAGS_ops << " ns";
400  std::cout << " " << std::setw(4) << res / FLAGS_ops << " ns";
401  if (base) {
402  std::cout << " " << std::setw(3) << 100 * base / res << "%";
403  }
404  std::cout << std::endl;
405  return res;
406 }
std::atomic< int64_t > sum(0)
LogLevel max
Definition: LogLevel.cpp:31
uint64_t run_test(int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false)
static bool simple
static int nthreads
const char * name
Definition: http_parser.c:437
LogLevel min
Definition: LogLevel.cpp:30
TEST ( FlatCombining  ,
direct_measurement   
)

Definition at line 408 of file FlatCombiningBenchmark.cpp.

References benchmarkSetup(), i, nthreads, simple, string, test(), and uint64_t.

408  {
409  if (!FLAGS_direct) {
410  return;
411  }
412  benchmarkSetup();
413  simple = false;
414  std::string str = simple ? "simple" : "custom";
415  std::cout << "\n------------------------------------ " << str << " interface"
416  << std::endl;
417  for (int i : nthr) {
418  nthreads = i;
419  std::cout << "\n------------------------------------ Number of threads = "
420  << i << "\n"
421  << std::endl;
422  std::cout << "Test_name, Max time, Avg time, Min time, % base min / min\n"
423  << std::endl;
424 
425  uint64_t base =
426  test("no_combining - base ", false, false, false, false, 0);
427  test("no_combining - dup ", false, false, false, false, base);
428  std::cout << "---------------------------------------" << std::endl;
429 
430  std::cout << "---- dedicated-------------------------" << std::endl;
431  test("combining_notc_sync ", true, true, false, true, base);
432  test("combining_notc_sync - dup ", true, true, false, true, base);
433  std::cout << "---------------------------------------" << std::endl;
434  test("combining_notc_async ", true, true, false, false, base);
435  test("combining_notc_async - dup ", true, true, false, false, base);
436  std::cout << "---------------------------------------" << std::endl;
437  test("combining_tc_sync ", true, true, true, true, base);
438  test("combining_tc_sync - dup ", true, true, true, true, base);
439  std::cout << "---------------------------------------" << std::endl;
440  test("combining_tc_async ", true, true, true, false, base);
441  test("combining_tc_async - dup ", true, true, true, false, base);
442  std::cout << "---------------------------------------" << std::endl;
443 
444  std::cout << "---- no dedicated----------------------" << std::endl;
445  test("combining_notc_sync ", true, false, false, true, base);
446  test("combining_notc_sync - dup ", true, false, false, true, base);
447  std::cout << "---------------------------------------" << std::endl;
448  test("combining_notc_async ", true, false, false, false, base);
449  test("combining_notc_async - dup ", true, false, false, false, base);
450  std::cout << "---------------------------------------" << std::endl;
451  test("combining_tc_sync ", true, false, true, true, base);
452  test("combining_tc_sync - dup ", true, false, true, true, base);
453  std::cout << "---------------------------------------" << std::endl;
454  test("combining_tc_async ", true, false, true, false, base);
455  test("combining_tc_async - dup ", true, false, true, false, base);
456  std::cout << "---------------------------------------" << std::endl;
457  }
458 }
static uint64_t test(std::string name, bool fc_, bool dedicated_, bool tc_, bool syncops_, uint64_t base)
static bool simple
static int nthreads
static std::vector< int > nthr
const char * string
Definition: Conv.cpp:212
void benchmarkSetup()

Variable Documentation

bool dedicated
static

Definition at line 38 of file FlatCombiningBenchmark.cpp.

Referenced by BENCHMARK(), BENCHMARK_RELATIVE(), and folly::test::run_test().

bool fc
static

Definition at line 36 of file FlatCombiningBenchmark.cpp.

Referenced by BENCHMARK(), and BENCHMARK_RELATIVE().

std::vector<int> nthr = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64}
static

Definition at line 34 of file FlatCombiningBenchmark.cpp.

bool syncops
static

Definition at line 40 of file FlatCombiningBenchmark.cpp.

Referenced by BENCHMARK(), BENCHMARK_RELATIVE(), and folly::test::run_test().