Message91496
> 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 |
|
Date |
User |
Action |
Args |
2009-08-12 12:16:23 | pitrou | set | 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 | link | issue2636 messages |
2009-08-12 12:16:20 | pitrou | create | |
|