Skip to content

Instantly share code, notes, and snippets.

@xsultan
Created April 5, 2011 09:59
Show Gist options
  • Save xsultan/903369 to your computer and use it in GitHub Desktop.
Save xsultan/903369 to your computer and use it in GitHub Desktop.
RE : gist: 900008
Sultans-MacBook-Pro:Desktop x21$ time ruby foo.rb >/dev/null
real 0m0.135s
user 0m0.130s
sys 0m0.004s
Sultans-MacBook-Pro:Desktop x21$ time php foo.php >/dev/null
real 0m0.129s
user 0m0.061s
sys 0m0.064s
<?
$message = 'Hello world';
for($i=0;$i<100000;$i++)
echo "<html><body>$message</body></html>";
?>
Ruby is amazing :D
@xsultan
Copy link
Author

xsultan commented Apr 5, 2011

Sultans-MacBook-Pro:Desktop x21$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

Sultans-MacBook-Pro:Desktop x21$ php -v
PHP 5.3.4 (cli) (built: Dec 15 2010 12:15:07)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

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