Skip to content

Instantly share code, notes, and snippets.

@wjandrea
Last active October 30, 2021 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjandrea/448523a400a123c5d4c679e0c1f584ef to your computer and use it in GitHub Desktop.
Save wjandrea/448523a400a123c5d4c679e0c1f584ef to your computer and use it in GitHub Desktop.
timeit results for https://stackoverflow.com/q/69776682/4518341 - IPython 7.27.0, Python 3.8.11
In [5]: %timeit 2 ** 4324567
17.8 ms ± 211 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [6]: %timeit 2 ** 4324567 % 55
20.3 ms ± 74.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment