Wala lang ko'y lingaw. Please don't derive any meaning out of this :)
It's just fun looking at different languages.
PHP:
PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch (cli) (built: Jan 12 2011 18:36:55)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
<?php
echo str_repeat('hello world', 100);
?>
real 0m0.020s
user 0m0.000s
sys 0m0.020s
<?php
for($i=0; $i < 100; $i++) echo 'hello world';
?>
real 0m0.021s
user 0m0.010s
sys 0m0.010s
RUBY:
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
(0..100).each do |x| puts "hello world" end
real 0m0.016s
user 0m0.010s
sys 0m0.010s
LUA:
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
for N=0,100 do
print "hello world"
end
real 0m0.003s
user 0m0.010s
sys 0m0.000s
--
-------------------------------------------------------------
"Penguin, penguin, and more penguin !"
http://www.webhostadmins.com
http://www.madforubuntu.com
http://baudizm.blogsome.com
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://lists.linux.org.ph/mailman/listinfo/klug)
Searchable Archives: http://archives.free.net.ph