What is considered a long execution time?
- by stjowa
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.