View previous topic :: View next topic |
Author |
Message |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat May 08, 2004 8:00 pm Post subject: Which is the fastest ? PHP-Perl-Python ! |
|
|
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 ? |
|
Back to top |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
|
Back to top |
|
|
nquin321 -
Joined: 29 Jan 2004 Posts: 296 Location: Right Behind You
|
|
Back to top |
|
|
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Sun May 09, 2004 12:22 am Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun May 09, 2004 1:33 pm Post subject: Re: Which is the fastest ? PHP-Perl-Python ! |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun May 09, 2004 7:48 pm Post subject: |
|
|
Thanks For the comment , I will
keep that in mind , Later! |
|
Back to top |
|
|
|