(module)
| 148 | |
| 149 | |
| 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)) |
| 160 | return using_bytecode_benchmark |
| 161 | |
| 162 | tabnanny_using_bytecode = _using_bytecode(tabnanny) |
| 163 | decimal_using_bytecode = _using_bytecode(decimal) |
no test coverage detected
searching dependent graphs…