Here is the test http://www.crystalballinc.com/vlad/tmp/memtest.c
It give very strange results, it works for Linux only because it uses mmap only and it looks like brk uses mmap internally according to Linux 2.6.13 kernel and it allows unlimited mmap-ed regions (or as i understand up to vm.max_map_count = 65536).
According to this test, when i use random sizes from 0-128k, Tcl allocator gives worse results than Linux malloc. On small amounts ckalloc faster but once over 64k, Linux malloc is faster. And, my small malloc implementaion which is based on first version of Lea's malloc and uses mmap only and supports per-thread memory only beats all mallocs, especially on bigger sizes. It does not crash, even on 5Mil loops, but i am not sure why it is so simple and so effective.
-- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/