Lines Matching refs:coll
140 #define for_each_collection(coll) \
141 for (coll = collections; coll->name; coll++)
144 #define for_each_bench(coll, bench) \
145 for (bench = coll->benchmarks; bench && bench->name; bench++)
147 static void dump_benchmarks(struct collection *coll)
151 printf("\n # List of available benchmarks for collection '%s':\n\n", coll->name);
153 for_each_bench(coll, bench)
178 struct collection *coll;
188 for_each_collection(coll)
189 printf("%14s: %s\n", coll->name, coll->summary);
234 static void run_collection(struct collection *coll)
247 for_each_bench(coll, bench) {
250 printf("# Running %s/%s benchmark...\n", coll->name, bench->name);
253 run_bench(coll->name, bench->name, bench->fn, 1, argv);
260 struct collection *coll;
262 for_each_collection(coll)
263 run_collection(coll);
268 struct collection *coll;
305 for_each_collection(coll) {
308 if (strcmp(coll->name, argv[0]))
313 dump_benchmarks(coll);
318 run_collection(coll);
322 for_each_bench(coll, bench) {
327 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name);
328 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1);
333 dump_benchmarks(coll);