()
| 92 | |
| 93 | |
| 94 | def main(): |
| 95 | parse_command_line() |
| 96 | |
| 97 | try: |
| 98 | func = Benchmark(options.benchmark).func |
| 99 | except ValueError: |
| 100 | known_benchmarks = [benchmark.value for benchmark in Benchmark] |
| 101 | print( |
| 102 | "Unknown benchmark: '{}', supported values are: {}" |
| 103 | .format(options.benchmark, ", ".join(known_benchmarks)) |
| 104 | ) |
| 105 | return |
| 106 | |
| 107 | for _ in range(options.num_runs): |
| 108 | func() |
| 109 | |
| 110 | |
| 111 | if __name__ == '__main__': |
no test coverage detected