Skip to content

Commit 79391ed

Browse files
m-filakrasznaa
authored andcommitted
respect stage option in main processing in throughput examples
1 parent b2df920 commit 79391ed

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/run/common/throughput_mt.ipp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,9 @@ int throughput_mt(std::string_view description, int argc, char* argv[]) {
275275
// Launch the processing of the event.
276276
arena.execute([&, event]() {
277277
group.run([&, event]() {
278-
rec_track_params.fetch_add(algs.at(static_cast<std::size_t>(
279-
tbb::this_task_arena::current_thread_index()))(
280-
input[event])
281-
.size());
278+
rec_track_params.fetch_add(process_event(
279+
tbb::this_task_arena::current_thread_index(),
280+
input[event]));
282281
progress_bar.tick();
283282
});
284283
});

examples/run/common/throughput_st.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int throughput_st(std::string_view description, int argc, char* argv[]) {
227227
input_opts.events;
228228

229229
// Process one event.
230-
rec_track_params += (*alg)(input[event]).size();
230+
rec_track_params += process_event(input[event]);
231231
progress_bar.tick();
232232
}
233233
}

0 commit comments

Comments
 (0)