Skip to content

Commit

Permalink
test: performance: cpu_bench: reduce scheduler draining wait time
Browse files Browse the repository at this point in the history
Speed up the program slightly by reducing the wait time for
scheduled queue draining.

Signed-off-by: Janne Peltonen <[email protected]>
Reviewed-by: Jere Leppänen <[email protected]>
  • Loading branch information
JannePeltonen authored and MatiasElo committed Jan 22, 2024
1 parent 831da61 commit 58c5733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/performance/odp_cpu_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static int run_thread(void *arg)
odp_event_t ev;

ev = odp_schedule(NULL,
odp_schedule_wait_time(ODP_TIME_SEC_IN_NS));
odp_schedule_wait_time(100 * ODP_TIME_MSEC_IN_NS));

if (ev == ODP_EVENT_INVALID)
break;
Expand Down

0 comments on commit 58c5733

Please sign in to comment.