[PATCH] Simple malloc benchtest.
Ondřej Bílka
neleai@seznam.cz
Fri Dec 27 21:43:00 GMT 2013
On Sun, Dec 22, 2013 at 02:28:25PM +0000, Will Newton wrote:
> >
> >> Also I would recommend tetsing some larger allocations as some
> >> allocators are very fast for small allocations but perform very poorly
> >> for larger allocations. Switching to e.g. a power law distribution of
> >> allocation sizes would allow this to be done without using huge
> >> amounts of memory or runtime.
> >>
> > Preprocessing time does not matter here, it is not measured.
>
> I'm not sure I understand.
>
You talked that switching to power law distribution of allocation
sizes would allow this to be done without using huge amounts of memory or runtime.
But in general we are not that constrained by memory and runtime requirements,
we could spend much more resources in generating a distribution that
will be used.
In current case trying to be clever would not help anything, see
following pattern why:
http://www.cs.northwestern.edu/~pdinda/icsclass/doc/dsa.pdf
More information about the Libc-alpha
mailing list