Lines Matching +full:run +full:- +full:time
23 import time
27 subprocess.run('sync; echo 3 > /proc/sys/vm/drop_caches', shell=True,
33 """Benchmark one test-case
35 test_func -- benchmarking function with prototype
43 test_env -- test environment - opaque first argument for test_func
44 test_case -- test case - opaque second argument for test_func
45 count -- how many times to call test_func, to calculate average
46 initial_run -- do initial run of test_func, which don't get into result
47 slow_limit -- stop at slow run (that exceedes the slow_limit by seconds).
48 (initial run is not measured)
49 drop_caches -- drop caches before each run
54 'average': average value (iops or seconds) per run (exists only if at
55 least one run succeeded)
57 (exists only if at least one run succeeded)
58 'n-failed': number of failed runs (exists only if at least one run
62 print(' #initial run:')
68 t = time.time()
70 print(' #run {}'.format(i+1))
76 if time.time() - t > slow_limit:
77 print(' - run is too slow, stop here')
101 result['n-failed'] = count - len(succeeded)
109 test_func -- benchmarking function, see bench_one for description
110 test_envs -- list of test environments, see bench_one
111 test_cases -- list of test cases, see bench_one
112 args, vargs -- additional arguments for bench_one