I think the reason is that append array appends random_string(10) repeatedly, so in some way its also measuring short string handling for a very specific length. It might be that the extra pointer deref is significant there. I ran these benchmarks several times and at least the results above 10% were stable. I generally at least disable the gc when benchmarking, otherwise there will be random spikes, which can be quite confusing at times.
I had power saving disabled but it might still be the case that automatic throttling kicks in due to thermal events. If anyone feels like running a benchmark on their machines, that would be great ,)
arne
On Mon, 18 Aug 2014, Per Hedbor () @ Pike (-) developers forum wrote:
It might be that he is using a laptop. Or just has power savings enabled. I have noticed differences on the order of 70% on my macbook with _no_ code changes.
The adaptive frequencies is generating issues, even with the power supply connected. In general it is depressingly hard to benchmark things these days, any difference that is less than 2x faster/slower disappears in the noise.