We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8514a2a commit 4c99fe7Copy full SHA for 4c99fe7
pyperformance/benchmarks/bm_mypy_types.py
@@ -12,20 +12,11 @@
12
13
from mypy.main import main
14
15
-
16
-def typecheck_targets(targets):
17
- with open(os.devnull, 'w') as devnull:
18
- try:
19
- main(None, devnull, devnull, targets)
20
- except SystemExit:
21
- pass
22
23
24
if __name__ == '__main__':
25
runner = pyperf.Runner()
26
runner.metadata['description'] = ('Mypy benchmark: '
27
'type-check mypy/types.py')
28
target_path = os.path.join(os.path.dirname(__file__), 'data',
29
'bm_mypy_target.py')
30
- runner.bench_func('mypy_types', typecheck_targets, [target_path])
+ runner.bench_command('mypy_types', ['mypy', target_path])
31
0 commit comments