Skip to content

Commit 6963b42

Browse files
committed
Check benchmark results in release builds
1 parent 5d4f063 commit 6963b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/json_benchmark.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ template<typename B, typename R> static void JsonBenchmark(benchmark::State &sta
1010
{
1111
R reference;
1212
if (!reference.Run(json)) { state.SkipWithError("reference tweet reading failed"); return; }
13-
assert(bench.Result() == reference.Result());
13+
if (bench.Result() != reference.Result()) { state.SkipWithError("results are not the same"); return; }
1414
}
1515

1616
// Run the benchmark

0 commit comments

Comments
 (0)