diff options
author | Tortar <68152031+Tortar@users.noreply.github.com> | 2022-10-30 17:26:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 16:26:35 +0000 |
commit | 48b5a957e4c681d363f3bc7020e3213cdabdb601 (patch) | |
tree | 4a6db6866a42739722c52bae54745cc60b29c796 /docs | |
parent | a4f2c4c26509391c21bbae4ae20ed59986752a28 (diff) | |
download | cython-48b5a957e4c681d363f3bc7020e3213cdabdb601.tar.gz |
[docs] Use double quotes for arguments in timeit (#5107)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/src/tutorial/cython_tutorial.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/tutorial/cython_tutorial.rst b/docs/src/tutorial/cython_tutorial.rst index 647ec62b2..e3ab46005 100644 --- a/docs/src/tutorial/cython_tutorial.rst +++ b/docs/src/tutorial/cython_tutorial.rst @@ -390,13 +390,13 @@ Now we can ensure that those two programs output the same values:: It's possible to compare the speed now:: - python -m timeit -s 'from primes_python import primes' 'primes(1000)' + python -m timeit -s "from primes_python import primes" "primes(1000)" 10 loops, best of 3: 23 msec per loop - python -m timeit -s 'from primes_python_compiled import primes' 'primes(1000)' + python -m timeit -s "from primes_python_compiled import primes" "primes(1000)" 100 loops, best of 3: 11.9 msec per loop - python -m timeit -s 'from primes import primes' 'primes(1000)' + python -m timeit -s "from primes import primes" "primes(1000)" 1000 loops, best of 3: 1.65 msec per loop The cythonize version of ``primes_python`` is 2 times faster than the Python one, |