Very good read for anyone that wants to write this outdated language in 2016.
Name:
Anonymous2016-01-21 21:14
>>93 It does. The allocation is a small pointer bump & check, not even a function call. However, this benchmark exercises exhausting allocation pools and free/realloc cycles, potentially forcing sbrks or multiple TLABs in any style memory system. That's kind of why it's a benchmark, and that's why pooling would give it around a 2x speedup, sidestepping the entire system that it's attempting to benchmark.