Skip to content

Instantly share code, notes, and snippets.

@hipertracker
Created December 9, 2010 03:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hipertracker/734305 to your computer and use it in GitHub Desktop.
Save hipertracker/734305 to your computer and use it in GitHub Desktop.
Benchmarks Ruby vs Python vs PHP
For MacBook Pro, Core Duo 2, 2.8GHz, Mac OS-X 10.6.5
https://gist.github.com/734280 - fraktals
1. PyPy 1.4 = 0.41 s.
2. MacRuby 0.7.1 (ruby 1.9.2) = 2.08 s.
3. Maglev 0.8 (ruby 1.8.7) = 6.23 s.
4. Rubinius 1.1.1 = 7.54 s.
5. JRuby 1.5.6 = 12.22 s.
6. Ruby 1.9.2p0 = 14.65 s.
7. PHP 5.3.3 = 14.19 s.
8. Python 3.1.3 = 14.33 s.
9. Python 2.7.1 = 14.6 s.
https://gist.github.com/52854 - Fibonacci
1. MacRuby 0.7.1 = 2.71 s.
2. Rubinius 1.1.1 = 3.39 s.
3. JRuby 1.5.6 = 3.91 (with -J-Djruby.compile.fastest=true -J-D-jruby.compile.fastops=true --server -J-D-jruby.compile.positionless=true)
4. JRuby 1.6.0.dev = 5.28 (with --server)
5. Ruby 1.9.2p0= 9.40 s.
6. Python 2.7.1 = 25.78 s.
7. PHP 5.3.3 = 27 s.
8. Python 3.1.3 = 30.37 s.
9. PyPy 1.4 - 64.83 s.
https://gist.github.com/734287
1. MacRuby 0.7.1 (ruby 1.9.2) = 0.40 s.
2. Ruby 1.9.2p0 = 2.11 s.
3. JRuby 1.5.6 = 2.42
4. PHP 5.3.3 = 7.96 s.
5. Python 2.7.1 = 5.24 s.
6. Python 3.1.3 = 5.88 s.
7. PyPy 1.4 = 12.51 s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment