From 291bf0627c0eba99fd9f109abb66a80354afd031 Mon Sep 17 00:00:00 2001 From: Tom Jackson Date: Mon, 3 Dec 2012 22:18:11 -0800 Subject: [PATCH] Fixing GENERATOR benchmark Summary: I forgot fbmake runtests doesn't build all that's configured, oops. Test Plan: Build folly/experimental/test, run benchmark. Reviewed By: tudorb@fb.com FB internal diff: D647191 --- folly/experimental/test/GenBenchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/experimental/test/GenBenchmark.cpp b/folly/experimental/test/GenBenchmark.cpp index f8ee2b89..956fb756 100644 --- a/folly/experimental/test/GenBenchmark.cpp +++ b/folly/experimental/test/GenBenchmark.cpp @@ -141,14 +141,14 @@ BENCHMARK(Fib_Sum_NoGen, iters) { BENCHMARK_RELATIVE(Fib_Sum_Gen, iters) { int s = 0; while (iters--) { - auto fib = GENERATOR(int, { + auto fib = GENERATOR(int) { int a = 0; int b = 1; for (;;) { yield(a += b); yield(b += a); } - }); + }; s += fib | take(testSize.load()) | sum; } folly::doNotOptimizeAway(s); -- 2.34.1