Commit b20cd8da authored by Igor Sugak's avatar Igor Sugak Committed by Facebook Github Bot

require trailing ; when using BENCHMARK_DRAW_LINE macro

Summary:
Macro BENCHMARK_DRAW_LINE can be used as the following:
```lang=bash
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
```
This inconsistency was detected by `-Wextra-semi` in the latest clang. This diff removes the trailing `;` inside `BENCHMARK_DRAW_LINE` and updates all of the references.

```lang=bash
fbgr -sl 'BENCHMARK_DRAW_LINE\(\)' | xargs perl -pi -e 's,(?<!#define )BENCHMARK_DRAW_LINE\(\)(?!;),BENCHMARK_DRAW_LINE\(\);,'
```

Reviewed By: yfeldblum

Differential Revision: D7382525

fbshipit-source-id: 76f1da01bb4dde1b0fa4ebf98748d001d8e04ab0
parent 8581e9e0
......@@ -548,9 +548,9 @@ void printResultComparison(
* Draws a line of dashes.
*/
#define BENCHMARK_DRAW_LINE() \
static bool FB_ANONYMOUS_VARIABLE(follyBenchmarkUnused) = ( \
::folly::addBenchmark(__FILE__, "-", []() -> unsigned { return 0; }), \
true);
static bool FB_ANONYMOUS_VARIABLE(follyBenchmarkUnused) = \
(::folly::addBenchmark(__FILE__, "-", []() -> unsigned { return 0; }), \
true)
/**
* Allows execution of code that doesn't count torward the benchmark's
......
......@@ -242,7 +242,7 @@ contentionAtWidthPthreadSelf(size_t iters, size_t stripes, size_t work) {
contentionAtWidth<PthreadSelfTag>(iters, stripes, work);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 1_stripe_0_work, 1, 0)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 2_stripe_0_work, 2, 0)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 4_stripe_0_work, 4, 0)
......@@ -263,7 +263,7 @@ BENCHMARK_NAMED_PARAM(contentionAtWidthPthreadSelf, 16_stripe_0_work, 16, 0)
BENCHMARK_NAMED_PARAM(contentionAtWidthPthreadSelf, 32_stripe_0_work, 32, 0)
BENCHMARK_NAMED_PARAM(contentionAtWidthPthreadSelf, 64_stripe_0_work, 64, 0)
BENCHMARK_NAMED_PARAM(atomicIncrBaseline, local_incr_0_work, 0)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 1_stripe_500_work, 1, 500)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 2_stripe_500_work, 2, 500)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 4_stripe_500_work, 4, 500)
......@@ -271,7 +271,7 @@ BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 8_stripe_500_work, 8, 500)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 16_stripe_500_work, 16, 500)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 32_stripe_500_work, 32, 500)
BENCHMARK_NAMED_PARAM(atomicIncrBaseline, local_incr_500_work, 500)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 1_stripe_1000_work, 1, 1000)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 2_stripe_1000_work, 2, 1000)
BENCHMARK_NAMED_PARAM(contentionAtWidthGetcpu, 4_stripe_1000_work, 4, 1000)
......
......@@ -71,11 +71,11 @@ BENCHMARK_RELATIVE(no_combining_dup, iters) {
tc,
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
// dedicated combiner
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_dedicated_notc_sync, iters) {
fc = true;
......@@ -109,7 +109,7 @@ BENCHMARK_RELATIVE(combining_dedicated_notc_sync_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_dedicated_notc_async, iters) {
syncops = false;
......@@ -140,7 +140,7 @@ BENCHMARK_RELATIVE(combining_dedicated_notc_async_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_dedicated_tc_sync, iters) {
tc = true;
......@@ -172,7 +172,7 @@ BENCHMARK_RELATIVE(combining_dedicated_tc_sync_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_dedicated_tc_async, iters) {
tc = true;
......@@ -204,11 +204,11 @@ BENCHMARK_RELATIVE(combining_dedicated_tc_async_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
// no dedicated combiner
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_no_dedicated_notc_sync, iters) {
dedicated = false;
......@@ -241,7 +241,7 @@ BENCHMARK_RELATIVE(combining_no_dedicated_notc_sync_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_no_dedicated_notc_async, iters) {
syncops = false;
......@@ -272,7 +272,7 @@ BENCHMARK_RELATIVE(combining_no_dedicated_notc_async_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_no_dedicated_tc_sync, iters) {
tc = true;
......@@ -304,7 +304,7 @@ BENCHMARK_RELATIVE(combining_no_dedicated_tc_sync_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_RELATIVE(combining_no_dedicated_tc_async, iters) {
tc = true;
......@@ -336,7 +336,7 @@ BENCHMARK_RELATIVE(combining_no_dedicated_tc_async_dup, iters) {
syncops);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
void benchmarkSetup() {
int numCores = std::thread::hardware_concurrency();
......
......@@ -61,7 +61,7 @@ BENCHMARK_RELATIVE(withThen) {
}
// thens
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(oneThen) {
someThens(1);
......@@ -85,7 +85,7 @@ BENCHMARK_RELATIVE(hundredThens) {
// Lock contention. Although in practice fulfills tend to be temporally
// separate from then()s, still sometimes they will be concurrent. So the
// higher this number is, the better.
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(no_contention) {
std::vector<Promise<int>> promises(10000);
......
......@@ -67,7 +67,7 @@ BENCHMARK_RELATIVE(Sum_Basic_Gen, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Sum_Vector_NoGen, iters) {
int s = 0;
......@@ -87,7 +87,7 @@ BENCHMARK_RELATIVE(Sum_Vector_Gen, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Member, iters) {
int s = 0;
......@@ -109,7 +109,7 @@ BENCHMARK_RELATIVE(MapMember, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Count_Vector_NoGen, iters) {
int s = 0;
......@@ -135,7 +135,7 @@ BENCHMARK_RELATIVE(Count_Vector_Gen, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Fib_Sum_NoGen, iters) {
int s = 0;
......@@ -213,7 +213,7 @@ BENCHMARK_RELATIVE(Fib_Sum_Gen_Static, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(VirtualGen_0Virtual, iters) {
int s = 0;
......@@ -259,7 +259,7 @@ BENCHMARK_RELATIVE(VirtualGen_3Virtual, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Concat_NoGen, iters) {
int s = 0;
......@@ -281,7 +281,7 @@ BENCHMARK_RELATIVE(Concat_Gen, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Composed_NoGen, iters) {
int s = 0;
......@@ -310,7 +310,7 @@ BENCHMARK_RELATIVE(Composed_GenRegular, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(Sample, iters) {
size_t s = 0;
......
......@@ -81,7 +81,7 @@ BENCHMARK_RELATIVE(StringResplitter_Small, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(StringSplit_Old, iters) {
size_t s = 0;
......@@ -104,7 +104,7 @@ BENCHMARK_RELATIVE(StringSplit_Gen_Vector, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(StringSplit_Old_ReuseVector, iters) {
size_t s = 0;
......@@ -148,7 +148,7 @@ BENCHMARK_RELATIVE(StringSplit_Gen_Take, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(StringUnsplit_Old, iters) {
size_t s = 0;
......@@ -191,7 +191,7 @@ BENCHMARK_RELATIVE(StringUnsplit_Gen_ReusedBuffer, iters) {
folly::doNotOptimizeAway(s);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
void StringUnsplit_Gen(size_t iters, size_t joinSize) {
std::vector<fbstring> v;
......@@ -215,7 +215,7 @@ BENCHMARK_RELATIVE_PARAM(StringUnsplit_Gen, 2000)
BENCHMARK_RELATIVE_PARAM(StringUnsplit_Gen, 4000)
BENCHMARK_RELATIVE_PARAM(StringUnsplit_Gen, 8000)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
void Lines_Gen(size_t iters, int joinSize) {
size_t s = 0;
StringPiece content = testFileContent;
......@@ -229,7 +229,7 @@ BENCHMARK_PARAM(Lines_Gen, 1e3)
BENCHMARK_RELATIVE_PARAM(Lines_Gen, 2e3)
BENCHMARK_RELATIVE_PARAM(Lines_Gen, 3e3)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
fbstring records
= seq<size_t>(1, 1000)
......
......@@ -75,31 +75,31 @@ void zeroCopyOff(unsigned /* unused */, size_t bufferSize) {
BENCHMARK_PARAM(zeroCopyOn, 4096);
BENCHMARK_PARAM(zeroCopyOff, 4096);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 8192);
BENCHMARK_PARAM(zeroCopyOff, 8192);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 16384);
BENCHMARK_PARAM(zeroCopyOff, 16384);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 32768);
BENCHMARK_PARAM(zeroCopyOff, 32768);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 65536);
BENCHMARK_PARAM(zeroCopyOff, 65536);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 131072);
BENCHMARK_PARAM(zeroCopyOff, 131072);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 262144);
BENCHMARK_PARAM(zeroCopyOff, 262144);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 524288);
BENCHMARK_PARAM(zeroCopyOff, 524288);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_PARAM(zeroCopyOn, 1048576);
BENCHMARK_PARAM(zeroCopyOff, 1048576);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
DEFINE_bool(client, false, "client mode");
DEFINE_bool(server, false, "server mode");
......
......@@ -216,7 +216,7 @@ BENCHMARK(bmUMArena, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(bmMStandard, iters) {
using Map = std::map<int, int>;
......@@ -229,7 +229,7 @@ BENCHMARK(bmMStandard, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(bmMArena, iters) {
using Map = std::map<
......@@ -250,7 +250,7 @@ BENCHMARK(bmMArena, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
} // namespace
......
......@@ -53,7 +53,7 @@ BENCHMARK_NAMED_PARAM(addValue, 100x10_1perSec, seconds(100), 10, 1);
BENCHMARK_NAMED_PARAM(addValue, 71x5_1perSec, seconds(71), 5, 1);
BENCHMARK_NAMED_PARAM(addValue, 1x1_1perSec, seconds(1), 1, 1);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_NAMED_PARAM(addValue, AllTime_10perSec, seconds(0), 60, 10);
BENCHMARK_NAMED_PARAM(addValue, 3600x60_10perSec, seconds(3600), 60, 10);
......@@ -63,7 +63,7 @@ BENCHMARK_NAMED_PARAM(addValue, 100x10_10perSec, seconds(100), 10, 10);
BENCHMARK_NAMED_PARAM(addValue, 71x5_10perSec, seconds(71), 5, 10);
BENCHMARK_NAMED_PARAM(addValue, 1x1_10perSec, seconds(1), 1, 10);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_NAMED_PARAM(addValue, AllTime_100perSec, seconds(0), 60, 100);
BENCHMARK_NAMED_PARAM(addValue, 3600x60_100perSec, seconds(3600), 60, 100);
......
......@@ -35,7 +35,7 @@ BENCHMARK(baton_pingpong_nonblocking, iters) {
run_pingpong_test<false, std::atomic>(iters);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(baton_pingpong_emulated_futex_blocking, iters) {
run_pingpong_test<true, EmulatedFutexAtomic>(iters);
......@@ -45,7 +45,7 @@ BENCHMARK(baton_pingpong_emulated_futex_nonblocking, iters) {
run_pingpong_test<false, EmulatedFutexAtomic>(iters);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(posix_sem_pingpong, iters) {
sem_t sems[3];
......
......@@ -446,7 +446,7 @@ static void contendedUse(uint32_t n, int posters, int waiters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK_NAMED_PARAM(contendedUse, 1_to_1, 1, 1)
BENCHMARK_NAMED_PARAM(contendedUse, 1_to_4, 1, 4)
BENCHMARK_NAMED_PARAM(contendedUse, 1_to_32, 1, 32)
......
......@@ -291,7 +291,7 @@ BENCHMARK(VirtualFunctionCall, iters) {
}
#endif
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
#define BENCH_BASE(...) FB_VA_GLUE(BENCHMARK_NAMED_PARAM, (__VA_ARGS__))
#define BENCH_REL(...) FB_VA_GLUE(BENCHMARK_RELATIVE_NAMED_PARAM, (__VA_ARGS__))
......@@ -309,37 +309,37 @@ static void folly_microlock(size_t numOps, size_t numThreads) {
runContended<folly::MicroLock>(numOps, numThreads);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 1thread, 1)
BENCH_REL(folly_microspin, 1thread, 1)
BENCH_REL(folly_picospin, 1thread, 1)
BENCH_REL(folly_microlock, 1thread, 1)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 2thread, 2)
BENCH_REL(folly_microspin, 2thread, 2)
BENCH_REL(folly_picospin, 2thread, 2)
BENCH_REL(folly_microlock, 2thread, 2)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 4thread, 4)
BENCH_REL(folly_microspin, 4thread, 4)
BENCH_REL(folly_picospin, 4thread, 4)
BENCH_REL(folly_microlock, 4thread, 4)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 8thread, 8)
BENCH_REL(folly_microspin, 8thread, 8)
BENCH_REL(folly_picospin, 8thread, 8)
BENCH_REL(folly_microlock, 8thread, 8)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 16thread, 16)
BENCH_REL(folly_microspin, 16thread, 16)
BENCH_REL(folly_picospin, 16thread, 16)
BENCH_REL(folly_microlock, 16thread, 16)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 32thread, 32)
BENCH_REL(folly_microspin, 32thread, 32)
BENCH_REL(folly_picospin, 32thread, 32)
BENCH_REL(folly_microlock, 32thread, 32)
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCH_BASE(std_mutex, 64thread, 64)
BENCH_REL(folly_microspin, 64thread, 64)
BENCH_REL(folly_picospin, 64thread, 64)
......
......@@ -868,7 +868,7 @@ BENCHMARK(st_qpahm_find, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(mt_ahm_miss, iters) {
CHECK_LE(iters, FLAGS_numBMElements);
......
......@@ -36,7 +36,7 @@ BENCHMARK(bmRepeatedFun, n) {
fun();
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(gun) {
static double x = 1;
......@@ -44,7 +44,7 @@ BENCHMARK(gun) {
doNotOptimizeAway(x);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(optimizerCanDiscardTrivial, n) {
long x = 0;
......@@ -240,7 +240,7 @@ BENCHMARK(optimizerDisabled1NonTrivialPtr, n) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(baselinevector) {
vector<int> v;
......@@ -261,13 +261,13 @@ BENCHMARK_RELATIVE(bmVector) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(superslow) {
sleep(1);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(noMulti) {
fun();
......
......@@ -174,19 +174,19 @@ void NoOverflowSub(size_t iterations, ValueT kMin, ValueT kMax) {
std::numeric_limits<ValueT>::max())
GENERATE_BENCHMARKS_FOR_TYPE(int8_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(uint8_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(int16_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(uint16_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(int32_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(uint32_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(int64_t);
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
GENERATE_BENCHMARKS_FOR_TYPE(uint64_t);
int main(int argc, char** argv) {
......
......@@ -50,7 +50,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_test, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(exception_ptr_create_and_test_concurrent, iters) {
std::atomic<bool> go(false);
......@@ -96,7 +96,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_test_concurrent, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
/*
* Use case 2: Library wraps errors in either exception_wrapper or
......@@ -134,8 +134,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_cast, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(exception_ptr_create_and_throw_concurrent, iters) {
std::atomic<bool> go(false);
......
......@@ -56,7 +56,7 @@ BENCHMARK_RELATIVE(octal_uintToOctal, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(hex_snprintf, iters) {
while (iters--) {
......@@ -72,7 +72,7 @@ BENCHMARK_RELATIVE(hex_uintToHex, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(intAppend_snprintf) {
fbstring out;
......@@ -96,7 +96,7 @@ BENCHMARK_RELATIVE(intAppend_format) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
template <size_t... Indexes>
int snprintf20Numbers(int i, std::index_sequence<Indexes...>) {
......@@ -148,7 +148,7 @@ BENCHMARK_RELATIVE(bigFormat_format, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(format_nested_strings, iters) {
BenchmarkSuspender suspender;
......@@ -198,7 +198,7 @@ BENCHMARK_RELATIVE(format_nested_direct, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(copy_short_string, iters) {
BenchmarkSuspender suspender;
......@@ -245,7 +245,7 @@ BENCHMARK_RELATIVE(sformat_short_string_safe, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(copy_long_string, iters) {
BenchmarkSuspender suspender;
......
......@@ -45,7 +45,7 @@ BENCHMARK_RELATIVE(ipv4_to_fully_qualified, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(ipv4_to_fully_qualified_port, iters) {
IPAddressV4 ip("255.255.255.255");
......@@ -69,7 +69,7 @@ BENCHMARK_RELATIVE(ipv4_append_to_fully_qualified_port, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(ipv6_to_string_inet_ntop, iters) {
IPAddressV6 ipv6Addr("F1E0:0ACE:FB94:7ADF:22E8:6DE6:9672:3725");
......@@ -92,7 +92,7 @@ BENCHMARK_RELATIVE(ipv6_to_fully_qualified, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(ipv6_to_fully_qualified_port, iters) {
IPAddressV6 ip("F1E0:0ACE:FB94:7ADF:22E8:6DE6:9672:3725");
......@@ -116,7 +116,7 @@ BENCHMARK_RELATIVE(ipv6_append_to_fully_qualified_port, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(ipv6_ctor_valid, iters) {
while (iters--) {
......@@ -140,7 +140,7 @@ BENCHMARK_RELATIVE(ipv6_ctor_invalid, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(ipv6_try_from_string_valid, iters) {
while (iters--) {
......
This diff is collapsed.
......@@ -226,7 +226,7 @@ BENCHMARK(scope_guard_lambda_local_var, iters) {
CHECK_EQ(iters / 2, count);
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(throw_exception, iters) {
for (size_t n = 0; n < iters; ++n) {
......@@ -289,7 +289,7 @@ BENCHMARK(return_code_noexcept, iters) {
}
}
BENCHMARK_DRAW_LINE()
BENCHMARK_DRAW_LINE();
BENCHMARK(std_function_create_move_invoke, iters) {
LargeClass a;
......
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