3 ms·
I wasnt talking about the length of the iterations but what the result of them is, he is just concatenating tiny strings, then apparently throwing the result a
by daleharvey 18y ago
I wasnt talking about the length of the iterations but what the result of them is, he is just concatenating tiny strings, then apparently throwing the result away, if he used the first example in an iteration of 100000 then I dont think the results would be negligible.
- olavk 18y agoI think that is his point. Since he just concatenates a handfull of strings, the difference between the methods are neglible, even if he runs it 100000 times.
- daleharvey 18y agolol, someone else picked up on it and wrote the proper benchmark for it 8678ms for concatenation Vs 19ms for stringbuilding