Commit 291bf062 authored by Tom Jackson's avatar Tom Jackson Committed by Jordan DeLong

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
parent ec496276
......@@ -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);
......
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