Commit 5dd5da9a authored by Noah Orensa's avatar Noah Orensa
Browse files

adjust performance tests to avoid spurious failures

parent 101de06b
......@@ -25,20 +25,20 @@ perf("performance-test", "too-slow")
perf("performance-test", "pass-ratio")
.performanceMarginAsBaselineRatio(0.7)
.body([] {
for (int i = 0; i < 4000000; ++i);
for (int i = 0; i < 20000000; ++i);
})
.baseline([] {
for (int i = 0; i < 8000000; ++i);
for (int i = 0; i < 80000000; ++i);
});
perf("performance-test", "too-slow-ratio")
.performanceMarginAsBaselineRatio(0.7)
.expect(Status::TOO_SLOW)
.body([] {
for (int i = 0; i < 8000000; ++i);
for (int i = 0; i < 80000000; ++i);
})
.baseline([] {
for (int i = 0; i < 4000000; ++i);
for (int i = 0; i < 20000000; ++i);
});
perf("performance-test", "error-msg")
......
Supports Markdown
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