Tests:
String.prototype.at
String.prototype.charAt
String.prototype.split
String.prototype.substring
String.prototype.slice
for-loop
spread operator
Array.from
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago )
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
Embed
String.prototype.split
21K/s
String.prototype.charAt
18K/s
String.prototype.substring
17K/s
String.prototype.slice
17K/s
String.prototype.at
17K/s
View exact numbers
Test name
Executions per second
✓
String.prototype.split
21,103 Ops/sec
spread operator
20,021 Ops/sec
Array.from
19,964 Ops/sec
String.prototype.charAt
17,656 Ops/sec
for-loop
17,532 Ops/sec
String.prototype.substring
17,361 Ops/sec
String.prototype.slice
17,354 Ops/sec
String.prototype.at
17,054 Ops/sec
Do you really want to delete benchmark?