Skip to content

Commit

Permalink
Fixing GENERATOR benchmark
Browse files Browse the repository at this point in the history
Summary: I forgot fbmake runtests doesn't build all that's configured, oops.

Test Plan: Build folly/experimental/test, run benchmark.

Reviewed By: [email protected]

FB internal diff: D647191
  • Loading branch information
ddrcoder authored and jdelong committed Dec 16, 2012
1 parent ec49627 commit 291bf06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folly/experimental/test/GenBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 291bf06

Please sign in to comment.