Message ID | 20191001052358.32157-1-honnappa.nagarahalli@arm.com |
---|---|
State | Superseded |
Headers | show |
Series | test/lpm: reset total time | expand |
diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index a9f02d983..9fa02f9df 100644 --- a/app/test/test_lpm_perf.c +++ b/app/test/test_lpm_perf.c @@ -937,7 +937,7 @@ test_lpm_perf(void) (double)total_time / ((double)ITERATIONS * BATCH_SIZE), (count * 100.0) / (double)(ITERATIONS * BATCH_SIZE)); - /* Delete */ + /* Measure Delete */ status = 0; begin = rte_rdtsc(); @@ -947,7 +947,7 @@ test_lpm_perf(void) large_route_table[i].depth); } - total_time += rte_rdtsc() - begin; + total_time = rte_rdtsc() - begin; printf("Average LPM Delete: %g cycles\n", (double)total_time / NUM_ROUTE_ENTRIES);