3 ms·
Just for clarify, split() java function is using regexp for the split as well. The code of String.split() is: return Pattern.compile(regex).split(this, limit);
by ivanprado 15y ago
Just for clarify, split() java function is using regexp for the split as well. The code of String.split() is:
return Pattern.compile(regex).split(this, limit);
The benchmark seems fair to me.