Lines Matching refs:i
57 for (int i = 0; i < n; i++) in do_benchmark() local
58 arr[i] = malloc (size); in do_benchmark()
60 for (int i = 0; i < n; i++) in do_benchmark() local
61 free (arr[i]); in do_benchmark()
78 for (int i = 0; i < NUM_ALLOCS; i++) in thread_test() local
79 do_benchmark (&tests[2][i], arr); in thread_test()
91 for (int i = 0; i < NUM_ALLOCS; i++) in bench() local
93 tests[t][i].n = allocs[i]; in bench()
94 tests[t][i].size = size; in bench()
95 tests[t][i].iters = iters / allocs[i]; in bench()
99 do_benchmark (&tests[0][i], arr); in bench()
103 for (int i = 0; i < NUM_ALLOCS; i++) in bench() local
104 do_benchmark (&tests[0][i], arr); in bench()
112 for (int i = 0; i < NUM_ALLOCS; i++) in bench() local
113 do_benchmark (&tests[1][i], arr); in bench()
139 for (int i = 0; i < NUM_ALLOCS; i++) in bench() local
141 sprintf (s, "main_arena_st_allocs_%04d_time", allocs[i]); in bench()
142 json_attr_double (&json_ctx, s, tests[0][i].elapsed / iters2); in bench()
145 for (int i = 0; i < NUM_ALLOCS; i++) in bench() local
147 sprintf (s, "main_arena_mt_allocs_%04d_time", allocs[i]); in bench()
148 json_attr_double (&json_ctx, s, tests[1][i].elapsed / iters2); in bench()
151 for (int i = 0; i < NUM_ALLOCS; i++) in bench() local
153 sprintf (s, "thread_arena__allocs_%04d_time", allocs[i]); in bench()
154 json_attr_double (&json_ctx, s, tests[2][i].elapsed / iters2); in bench()