Welcome to Auciou's Blog!

HomeAbout AuciouArchivesContactSite MapLinks

Compare ASP and PHP (1): Speed - Auciou
Compare ASP and PHP (1): Speed

Published by Auciouce Augest 29, 2005, 11:38

These days we are going to write a program to search from a large database, before this project I did one of the tests in order to wonder the speed of this big project.

The PHP program:

<?
for ($i=1; $i<=1000000; $i++){
echo "$i, ";}
?>

The ASP program:

<%
for i=1 to 1000000
response.write i&", "
next
%>

On this test, I wanted it to print the numbers until one million. The test result: PHP program couldn't finish that just could print until 328125 and tell me "Fatal error: Maximum execution time of 30 seconds exceeded in F:\cww\php\re.php on line 3", it spent me 31 seconds; but ASP program could be finished, it spent me 18 seconds.

Trackback: http://www.cutegd.com/capable/trackback.jsp?hkn00000053


2 Comments:

1   ndtoan13 2005-11-22 12:22 posted:
I am not agree that this is a fair comparation.
The php code is process in server side, but I dont think the asp code does at the server, it does at client side so it completes your task!!

2   密陀僧 2007-06-09 13:43 posted:
令我感到惊讶的结果
一直觉得php的效率高

Comments are closed.

Auciou: Web programmer and web designer

My Chinese Blog
Auciou's Topics

Category:
Computer
Internet
Blog Research
Philosophy

Recent Comments:
» Is belief a secret?
» Compare ASP and PHP (1):
» This blog had resumed
» 2 excellent philosophy bo
» Happy birthday, Nicholas
» Shut down when insert the
» Insert the earphone that
» A very mellow Chinese son

Archives

May 2007
April 2007
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
All archives

This work is licensed under a Creative Commons License.

 Subscibe


Copyright © 2005-2008 cutegd.com All rights reserved.
This Blog program is powered by Auciou.