Created
May 17, 2013 21:17
-
-
Save AndrewVos/5602026 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
➜ scripts ./execute-gist https://gist.github.com/whitequark/a70f0d6fcaaf3a1cda0a | |
Only compare reverse! and unshift result for the same number of lines. | |
user system total real | |
reverse! 1 lines 5.710000 0.010000 5.720000 ( 5.718942) | |
unshift 1 lines 5.390000 0.000000 5.390000 ( 5.392344) | |
reverse! 10 lines 3.490000 0.010000 3.500000 ( 3.504888) | |
unshift 10 lines 3.360000 0.000000 3.360000 ( 3.360647) | |
reverse! 100 lines 3.350000 0.000000 3.350000 ( 3.357393) | |
unshift 100 lines 3.160000 0.010000 3.170000 ( 3.161148) | |
reverse! 1000 lines 5.540000 0.000000 5.540000 ( 5.540792) | |
unshift 1000 lines 3.970000 0.000000 3.970000 ( 3.979003) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment