timeit module for comparing the performance of two scripts
3c273
nospam at nospam.com
Tue Jul 11 16:35:00 EDT 2006
"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
news:mailman.8031.1152632499.27775.python-list at python.org...
> $ python -m timeit -s "import pyConfig" "pyConfig.pyConfig()"
> $ python -m timeit -s "import pyConparse" "pyConparse.pyConParse()"
>
> note that timeit runs the benchmarked function multiple times, so you may
want
> to remove the print statements.
Hello,
Could you tell me what the "-m" switch does or even better, where to find
information on all switches in the documentation? Thanks.
Louis
More information about the Python-list
mailing list