消息 [91496]
> Remember, though, that
> when run as a single instance, at least in the existing engine, the re
> compiler caches recent compiles, so repeatedly compiling an expression
> flattens the overhead in a single run to a single compile and lookup,
> where as your tests recompile at each test
They don't. The pattern is compiled only once. Please take a look at
http://docs.python.org/library/timeit.html#command-line-interface |
|
| 日期 |
用户 |
动作 |
参数 |
| 2009-08-12 12:16:23 | pitrou | 修改 | recipients:
+ pitrou, loewis, akuchling, doerwalter, georg.brandl, collinwinter, gregory.p.smith, jimjjewett, sjmachin, amaury.forgeotdarc, nneonneo, rsc, timehorse, mark, vbr, ezio.melotti, mrabarnett, jaylogan, akitada, moreati, r.david.murray |
| 2009-08-12 12:16:21 | pitrou | 链接 | issue2636 messages |
| 2009-08-12 12:16:20 | pitrou | 创建 | |
|