What is considered a long execution time?

Posted by stjowa on Stack Overflow See other posts from Stack Overflow or by stjowa
Published on 2010-03-14T19:44:23Z Indexed on 2010/03/14 19:55 UTC
Read the original article Hit count: 410

I am trying to figure out just how "efficient" my server-side code is.

Using start and end microtime(true) values, I am able to calculate the time it took my script to run.

I am getting times from .3 - .5 seconds. These scripts do a number of database queries to return different values to the user.

What is considered an efficient execution time for PHP scripts that will be run online for a website?

Note: I know it depends on exactly what is being done, but just consider this a standard script that reads from a database and returns values to the user. Also, I look at Google and see them search the internet in .15 seconds and I feel like my script is crap.

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about efficiency