Which is the fastest ? PHP-Perl-Python !

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sat May 08, 2004 8:00 pm    Post subject: Which is the fastest ? PHP-Perl-Python ! Reply with quote

I have done some tests on PHP and come to find out , its
one of the fastest programming langugaes on the web so
far because I haven't tested ASP but I know thats slow!

Here Are The Results using
::Virtual Host Creator::

Tested On A Dial Up connection.

48 domains
Python = 6.56 sec
Perl = 5.03 sec
PHP = 2.00 sec

PHP -> Python = 4.56 sec faster
PHP -> Perl = 3.03 sec faster


24 domains
Python = 4.72 sec
Perl = 2.75 sec
PHP = 1.50 sec

PHP -> Python = 3.22 sec faster
PHP -> Perl = 1.25 sec faster

12 domains
Python = 3.22 sec
Perl = 3.13 sec
PHP = 2.07 sec

PHP -> Python = 1.15 sec faster
PHP -> Perl = 1.06 sec faster

6 domains
Python = 3.21 sec
Perl = 2.81 sec
PHP = 2.18 sec

PHP -> Python = 1.03 sec faster
PHP -> Perl = 0.63 sec faster


3 domains
Python = 3.41 sec
Perl = 2.75 sec
PHP = 1.87 sec

PHP -> Python = 1.54 sec faster
PHP -> Perl = 0.88 sec faster

-------------------------------------------------------------------------------------

Still wondering what to start programming In ?
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sat May 08, 2004 8:22 pm    Post subject: Reply with quote

Very interesting test.

Here are my results:
PHP: 1.1 Seconds
ASP: 2 Seconds
I guess PHP beats ASP also.

http://www.cfxnetworks.com/system/hello.php
http://www.cfxnetworks.com/system/hello.asp
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
nquin321
-


Joined: 29 Jan 2004
Posts: 296
Location: Right Behind You

PostPosted: Sat May 08, 2004 9:08 pm    Post subject: Reply with quote

Php has always been faster for me.
_________________
How many forum members does it takes to change a light bulb?
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Sun May 09, 2004 12:22 am    Post subject: Reply with quote

Since they're all created for slightly different purposes you'll see better performance in each area depending on type of script, purpose, platform, server spec etc. This is like those pointless "Microsoft is Cheaper" reports commisioned by Microsoft...
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun May 09, 2004 1:33 pm    Post subject: Re: Which is the fastest ? PHP-Perl-Python ! Reply with quote

TRUSTpunk,

You results doesn't exactly reflect the real speed of those languages. You are counting here (the interpreter loading time+script compilation+script execution time).
Since Perl and Python have a relatively long (interpreter loading+script compilation phases), they can't beat PHP on small scripts. But on long scripts, you can see the difference.
In Python, you can pre-compile a script and generate a .pyc file. Executing this .pyc file requires only (the interpreter loading time+script execution time). And according to our tests, .pyc files are very fast.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sun May 09, 2004 7:48 pm    Post subject: Reply with quote

Thanks For the comment , I will
keep that in mind , Later!
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group