Skip to content

Instantly share code, notes, and snippets.

@MarioAriasC
Last active August 3, 2023 14:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MarioAriasC/6ee0e1b2001282a39326db56b01c0054 to your computer and use it in GitHub Desktop.
hyperfine -w 1 -M 3 'python benchmarks.py' 'pypy3 benchmarks.py' --export-json python311-vs-pypy.json
Benchmark 1: python benchmarks.py
Time (mean ± σ): 658.532 s ± 13.779 s [User: 502.028 s, System: 156.460 s]
Range (min … max): 647.729 s … 674.050 s 3 runs
Benchmark 2: pypy3 benchmarks.py
Time (mean ± σ): 34.425 s ± 16.328 s [User: 34.398 s, System: 0.022 s]
Range (min … max): 16.486 s … 48.422 s 3 runs
Summary
pypy3 benchmarks.py ran
19.13 ± 9.08 times faster than python benchmarks.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment