Source w/ bytecode: {}
(seconds, repeat)
| 150 | def _using_bytecode(module): |
| 151 | name = module.__name__ |
| 152 | def using_bytecode_benchmark(seconds, repeat): |
| 153 | """Source w/ bytecode: {}""" |
| 154 | py_compile.compile(module.__file__) |
| 155 | yield from bench(name, lambda: sys.modules.pop(name), repeat=repeat, |
| 156 | seconds=seconds) |
| 157 | |
| 158 | using_bytecode_benchmark.__doc__ = ( |
| 159 | using_bytecode_benchmark.__doc__.format(name)) |