Skip to content

Commit 34df2fc

Browse files
committed
Tests are updated.
1 parent 6687e73 commit 34df2fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmarks/benchmark.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ std::vector<event_count>
5151
time_it_ns(std::vector<std::basic_string<CharT>> &lines, T const &function,
5252
size_t repeat) {
5353
std::vector<event_count> aggregate;
54-
collector.start();
5554
bool printed_bug = false;
5655
for (size_t i = 0; i < repeat; i++) {
57-
double ts = function(lines);
56+
collector.start();
57+
auto const ts = function(lines);
5858
if (ts == 0 && !printed_bug) {
5959
printf("bug\n");
6060
printed_bug = true;
@@ -134,7 +134,7 @@ time_it_ns(std::vector<std::basic_string<CharT>> &lines, T const &function,
134134
bool printed_bug = false;
135135
for (size_t i = 0; i < repeat; i++) {
136136
t1 = std::chrono::high_resolution_clock::now();
137-
const auto ts = function(lines);
137+
auto const ts = function(lines);
138138
if (ts == 0 && !printed_bug) {
139139
printf("bug\n");
140140
printed_bug = true;

0 commit comments

Comments
 (0)