Re: How expensive is glob'ing a dir and including all the files? [message #179165 is a reply to message #179163] |
Sun, 16 September 2012 23:00 |
J. Frank Parnell
Messages: 12 Registered: January 2012
Karma:
|
Junior Member |
|
|
On Sunday, September 16, 2012 2:45:40 PM UTC-7, Jerry Stuckle wrote:
> On 9/16/2012 1:50 PM, J. Frank Parnell wrote:
>
>> Ok, so I tested
>> and I got
>> Script executed in 0.0200 seconds
>> Thats with either globing or reading the cache file (which backs up the statement that the glob doesnt add much)
>
> That's a HUGE amount of server time!
>> Afa size and traffic of sites, wordpress sites, plenty of plugins and custom stuff. Traffic, some might be 100-500 page views/day.
>> Testing script execution for the whole page gave me around 2.5 seconds.
> Even worse!
>> The whole front page takes around 2 seconds
> Not good at all.
Another wp site, but without several facebook curls was .3 seconds (homepage), another .7, and a non wp site of mine, but still using my funcs includer was .03 seconds.
What do you think a good average should be, for a db driven site?
|
|
|