projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec49627
)
Fixing GENERATOR benchmark
author
Tom Jackson
<tjackson@fb.com>
Tue, 4 Dec 2012 06:18:11 +0000
(22:18 -0800)
committer
Jordan DeLong
<jdelong@fb.com>
Sun, 16 Dec 2012 22:46:31 +0000
(14:46 -0800)
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
patch
|
blob
|
history
diff --git
a/folly/experimental/test/GenBenchmark.cpp
b/folly/experimental/test/GenBenchmark.cpp
index f8ee2b899d2afce6e62d046d587837c4ebbae90f..956fb756f6df11800f52176b1b1715318029b756 100644
(file)
--- 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);