Lines Matching full:samples
25 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
33 for (i = 0; i < samples; i++) { in timing()
54 unsigned long long i, samples, step = 9973; in calibrate() local
60 samples = 0; in calibrate()
70 samples += step; in calibrate()
76 return samples * seconds; in calibrate()
186 unsigned long long samples, calc; in main() local
210 samples = strtoull(argv[1], NULL, 0); in main()
212 samples = calibrate(); in main()
214 ksft_print_msg("Benchmarking %llu syscalls...\n", samples); in main()
217 native = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
227 bitmap1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
234 bitmap2 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
241 filter1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
248 filter2 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
303 ksft_print_msg("Saw unexpected benchmark result. Try running again with more samples?\n"); in main()