Skip to content

Commit

Permalink
Merge pull request #2736 from SGSSGene/fix/view_take_until_benchmark
Browse files Browse the repository at this point in the history
[FIX] Adjust benchmark for view_take_until
  • Loading branch information
eseiler authored Aug 2, 2021
2 parents 6b41c1f + a0f1290 commit f502e4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/performance/io/detail/view_take_until_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ void sequential_read(benchmark::State & state)
{
single_pass_or_ref_t single_pass_or_ref{container};
for (auto elem : single_pass_or_ref)
sum += elem;
if(sum += elem; elem >= 101)
break;
}
}
else // {seqan3,std}::views::take* adaptor
Expand Down

0 comments on commit f502e4c

Please sign in to comment.