Zoran Vasiljevic schrieb:
Anyway, from all this tests, it appears that the Tcl allocator is slower than anything else, at least for the test-pattern used in your test.
for our power5 machine (the monster) with the linux 2.6.9-22 kernel, ckalloc is not so bad, but _malloc is still significantly better. Tcl: 8.4.11, threads 16, loops 500000 starting 16 malloc threads...waiting....done: 8 seconds, 397357 usec starting 16 ckalloc threads...waiting....done: 8 seconds, 4346 usec starting 16 _malloc threads...waiting....done: 6 seconds, 404069 usec strangely enough, with 64 threads, the differences seem to disappear. Tcl: 8.4.11, threads 64, loops 500000 starting 64 malloc threads...waiting....done: 26 seconds, 718077 usec starting 64 ckalloc threads...waiting....done: 26 seconds, 783919 usec starting 64 _malloc threads...waiting....done: 26 seconds, 237283 usec these results are repeatable. -gustaf