Lines Matching refs:iterations
39 unsigned iterations = 100; in test_timer_perf() local
54 while (iterations <= MAX_ITERATIONS) { in test_timer_perf()
56 printf("Appending %u timers\n", iterations); in test_timer_perf()
58 for (i = 0; i < iterations; i++) in test_timer_perf()
62 printf("Time for %u timers: %"PRIu64" (%"PRIu64"ms), ", iterations, in test_timer_perf()
65 (end_tsc-start_tsc)/iterations, in test_timer_perf()
66 ((end_tsc-start_tsc)/iterations+ticks_per_us/2)/(ticks_per_us)); in test_timer_perf()
67 outstanding_count = iterations; in test_timer_perf()
76 printf("Time for %u callbacks: %"PRIu64" (%"PRIu64"ms), ", iterations, in test_timer_perf()
79 (end_tsc-start_tsc)/iterations, in test_timer_perf()
80 ((end_tsc-start_tsc)/iterations+ticks_per_us/2)/(ticks_per_us)); in test_timer_perf()
82 printf("Resetting %u timers\n", iterations); in test_timer_perf()
84 for (i = 0; i < iterations; i++) in test_timer_perf()
88 printf("Time for %u timers: %"PRIu64" (%"PRIu64"ms), ", iterations, in test_timer_perf()
91 (end_tsc-start_tsc)/iterations, in test_timer_perf()
92 ((end_tsc-start_tsc)/iterations+ticks_per_us/2)/(ticks_per_us)); in test_timer_perf()
93 outstanding_count = iterations; in test_timer_perf()
105 iterations *= 10; in test_timer_perf()
113 for (i = 0; i < iterations; i++) in test_timer_perf()
117 (end_tsc - start_tsc + iterations/2) / iterations); in test_timer_perf()
124 for (i = 0; i < iterations; i++) in test_timer_perf()
128 (end_tsc - start_tsc + iterations/2) / iterations); in test_timer_perf()