Skip to content

Instantly share code, notes, and snippets.

@MarioAriasC
Created August 12, 2023 05:27
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 MarioAriasC/7e97bfa01b1a7b1792f0de895df87dd7 to your computer and use it in GitHub Desktop.
Save MarioAriasC/7e97bfa01b1a7b1792f0de895df87dd7 to your computer and use it in GitHub Desktop.
hyperfine -w 1 -M 3 'python benchmarks.py' 'python -c "import mypyc_exe"' --export-json python-vs-mypyc.json
Benchmark 1: python benchmarks.py
Time (mean ± σ): 664.181 s ± 5.140 s [User: 504.246 s, System: 159.861 s]
Range (min … max): 661.213 s … 670.116 s 3 runs
Benchmark 2: python -c "import mypyc_exe"
Time (mean ± σ): 594.932 s ± 1.999 s [User: 488.391 s, System: 106.480 s]
Range (min … max): 592.685 s … 596.513 s 3 runs
Summary
python -c "import mypyc_exe" ran
1.12 ± 0.01 times faster than python benchmarks.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment