Lines Matching +full:- +full:single +full:- +full:end

1 // SPDX-License-Identifier: GPL-2.0
14 #include "../util/synthetic-events.h"
22 #include <subcmd/parse-options.h>
32 OPT_BOOLEAN('s', "st", &run_st, "Run single threaded benchmark"),
33 OPT_BOOLEAN('t', "mt", &run_mt, "Run multi-threaded benchmark"),
34 OPT_UINTEGER('m', "min-threads", &min_threads,
36 OPT_UINTEGER('M', "max-threads", &max_threads,
38 OPT_UINTEGER('i', "single-iterations", &single_iterations,
39 "Number of iterations used to compute single-threaded average"),
40 OPT_UINTEGER('I', "multi-iterations", &multi_iterations,
41 "Number of iterations used to compute multi-threaded average"),
66 struct timeval start, end, diff; in do_run_single_threaded() local
79 err = __machine__synthesize_threads(&session->machines.host, in do_run_single_threaded()
88 gettimeofday(&end, NULL); in do_run_single_threaded()
89 timersub(&end, &start, &diff); in do_run_single_threaded()
97 printf(" Average %ssynthesis took: %.3f usec (+- %.3f usec)\n", in do_run_single_threaded()
102 printf(" Average num. events: %.3f (+- %.3f)\n", in do_run_single_threaded()
128 err = -ENOMEM; in run_single_threaded()
133 "Computing performance of single threaded perf event synthesis by\n" in run_single_threaded()
153 struct timeval start, end, diff; in do_run_multi_threaded() local
170 err = __machine__synthesize_threads(&session->machines.host, in do_run_multi_threaded()
181 gettimeofday(&end, NULL); in do_run_multi_threaded()
182 timersub(&end, &start, &diff); in do_run_multi_threaded()
191 printf(" Average synthesis took: %.3f usec (+- %.3f usec)\n", in do_run_multi_threaded()
196 printf(" Average num. events: %.3f (+- %.3f)\n", in do_run_multi_threaded()
249 * If neither single threaded or multi-threaded are specified, default in bench_synthesize()
250 * to running just single threaded. in bench_synthesize()