apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: Poor performance with new apr_pool
Date Thu, 26 Mar 2009 12:19:38 GMT
Mladen Turk wrote:
> Just did some quick bench of the current trunk,
> and the results are not very much encouraging.
> 

Inner loops are even worse.
Calling 10000 x 32 bytes allocations
is more then 10 times slower.

This takes less then a second on my box to finish
with apr 1.4 and 11 seconds with trunk :)

for (i = 0; i < 10000; i++) {
     apr_pool_t *p;

     apr_pool_create(&p, NULL);
     for (j = 0; j < 10000; j++) {
         m = apr_palloc(p, 32);
     }
     apr_pool_destroy(p);
}


Regards
-- 
^(TM)

Mime
View raw message