Created
February 11, 2011 16:42
-
-
Save luizfonseca/822615 to your computer and use it in GitHub Desktop.
Python vs Ruby vs PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ luiz$ python -c "print(12345**54321)" > /dev/null | |
real 0m23.445s | |
user 0m22.524s | |
sys 0m0.152s | |
~ luiz$ time ruby -e "puts 12345**54321" > /dev/null | |
real 0m10.127s | |
user 0m9.932s | |
sys 0m0.049s | |
~ luiz$ time php -r "echo bcpow(12345,54321);" > /dev/null | |
real 0m4.393s | |
user 0m4.165s | |
sys 0m0.054s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment