[ad_1] I just coded a benchmark and tested the first 3 answers. It seems that for short strings (<500 characters)the third most voted answer is faster than the second most voted one. For long strings (add “.repeat(300)” to ...
Sorry it's a private question.