Created
January 22, 2010 16:45
-
-
Save jonatas/283900 to your computer and use it in GitHub Desktop.
This file contains 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
jonatas@ogro:~/projetos/rails/agecel$>time ruby <<TESTE | |
> teste = proc {|i| "teste"+i.to_s} | |
> 1000000.times &teste | |
> TESTE | |
real 0m2.170s | |
user 0m1.808s | |
sys 0m0.352s | |
jonatas@ogro:~/projetos/rails/agecel$>time ruby <<TESTE | |
> teste = proc {|i| "teste#{i}"} | |
> 1000000.times &teste | |
> TESTE | |
real 0m2.206s | |
user 0m1.816s | |
sys 0m0.384s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment