HTML Preparation code:
Script Preparation code:
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:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    String.prototype.at
    String.prototype.charAt
    String.prototype.split
    String.prototype.substring
    String.prototype.slice
    for-loop
    spread operator
    Array.from

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 21 hours ago)
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
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
String.prototype.at 17054.4 Ops/sec
String.prototype.charAt 17656.2 Ops/sec
String.prototype.split 21102.9 Ops/sec
String.prototype.substring 17360.9 Ops/sec
String.prototype.slice 17354.5 Ops/sec
for-loop 17532.4 Ops/sec
spread operator 20020.6 Ops/sec
Array.from 19963.9 Ops/sec