Created
March 13, 2012 18:19
-
-
Save thekid/2030441 to your computer and use it in GitHub Desktop.
NodeJS vs. PHP performance tests
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
| public class Performance { | |
| protected static int inc(int? $arg) { | |
| return $arg + 1; | |
| } | |
| public static void main(string[] $args) { | |
| $a= 0; | |
| for ($i= 0; $i < 10000000; $i++) { | |
| $a+= self::inc($a); | |
| } | |
| util.cmd.Console::writeLine($i); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
10000000from above = 10 million...