Skip to content

Instantly share code, notes, and snippets.

@thekid
Created March 13, 2012 18:19
Show Gist options
  • Select an option

  • Save thekid/2030441 to your computer and use it in GitHub Desktop.

Select an option

Save thekid/2030441 to your computer and use it in GitHub Desktop.
NodeJS vs. PHP performance tests
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);
}
}
@thekid
Copy link
Author

thekid commented Mar 13, 2012

The 10000000 from above = 10 million...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment