Skip to content

Commit

Permalink
fix oom
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Oct 14, 2024
1 parent 2c393d7 commit 12e1856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metric/benchmark/bench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void bench_mixed_impl(IMPL& impl, WRITE_OP&& op, size_t thd_num,
vec.push_back(std::thread([&, i] {
bench_clock_t clock_loop;
auto dur = clock.duration<std::chrono::microseconds>();
while (!stop || dur < duration * 2) {
while (!stop && dur < duration + 1s) {
op();
auto new_dur = clock.duration<std::chrono::microseconds>();
lantency_summary.observe((new_dur - dur).count() / 1000.0f);
Expand Down

0 comments on commit 12e1856

Please sign in to comment.