Lines Matching full:samples
23 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
31 for (i = 0; i < samples; i++) { in timing()
52 unsigned long long i, samples, step = 9973; in calibrate() local
58 samples = 0; in calibrate()
68 samples += step; in calibrate()
74 return samples * seconds; in calibrate()
142 unsigned long long samples, calc; in main() local
157 samples = strtoull(argv[1], NULL, 0); in main()
159 samples = calibrate(); in main()
161 printf("Benchmarking %llu syscalls...\n", samples); in main()
164 native = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
174 bitmap1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
181 bitmap2 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
188 filter1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
195 filter2 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
245 printf("Saw unexpected benchmark result. Try running again with more samples?\n"); in main()