Lines Matching refs:coll
118 #define for_each_collection(coll) \
119 for (coll = collections; coll->name; coll++)
122 #define for_each_bench(coll, bench) \
123 for (bench = coll->benchmarks; bench && bench->name; bench++)
125 static void dump_benchmarks(struct collection *coll)
129 printf("\n # List of available benchmarks for collection '%s':\n\n", coll->name);
131 for_each_bench(coll, bench)
156 struct collection *coll;
166 for_each_collection(coll)
167 printf("%14s: %s\n", coll->name, coll->summary);
212 static void run_collection(struct collection *coll)
225 for_each_bench(coll, bench) {
228 printf("# Running %s/%s benchmark...\n", coll->name, bench->name);
231 run_bench(coll->name, bench->name, bench->fn, 1, argv);
238 struct collection *coll;
240 for_each_collection(coll)
241 run_collection(coll);
246 struct collection *coll;
283 for_each_collection(coll) {
286 if (strcmp(coll->name, argv[0]))
291 dump_benchmarks(coll);
296 run_collection(coll);
300 for_each_bench(coll, bench) {
305 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name);
306 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1);
311 dump_benchmarks(coll);