26.09.2018, 21:02
Using str_new("Haha, this is a benchmark") is expected to se slower, since you are creating many instances of the same string (and computing its length every time). Using one instance will be better. strcat will eventually turn into a strlen, and SetSVarString might be faster, because both the SVar pool and the map are really small. Try benchmarking it with > 10 elements.



