PHP Performance Benchmarks
maettig.com
PHP Performance Benchmarks
1–10 of 49 posts
Re: PHP Performance Benchmarks
#2Re: PHP Performance Benchmarks
#3While fun to look at and calculate, it also doesn't mean a lot for most applications. I would argue that data fetching from DBs or caches will be the majority of execution time.
Re: PHP Performance Benchmarks
#4http://www.slideshare.net/quipo/profile-your-php-application...
http://blip.tv/phpnw/phpnw10-lorenzo-alberton-profile-your-p...
Re: PHP Performance Benchmarks
#5 for ($i = 0; $i
vs foreach($users as $user)Re: PHP Performance Benchmarks
#6What am I supposed to learn from these numbers? They are interesting to look at, but I don't have enough information. Exactly what version of php is running, and how is it configured? What does the "Index" field signify? Where can I find the code? While fun to look at and calculate, it also doesn't mean a lot for most applications. I would argue that data fetching from DBs or caches will be the majority of execution…
People keep saying that, and I would like to see some numbers for that also.
The DB dataset could be already cached in memory, for example.
Re: PHP Performance Benchmarks
#7Re: PHP Performance Benchmarks
#8 My conclusion: Never use the ereg…() functions.
Well, duh. It's deprecated.Re: PHP Performance Benchmarks
#9I'd love to see a benchmark of: for ($i = 0; $i vs foreach($users as $user)
Intuitively the for loop should be a lot fast as it isn't assigning anything each loop. Although in your example it may be slower because the count($users) would be ran on each iteration of the loop.