Script Preparation code:
AخA
 
var testString = 'abcdefghijklmnopqrstuvwxyz';
Tests:
  • char of

     
    for (char of testString) console.log(char);
  • indexed charAt

     
    for (i = 0; i < testString.length; i++) console.log(testString.charAt(i));
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    char of
    indexed charAt

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111 on Ubuntu
View result in a separate tab
Test name Executions per second
char of 3735.7 Ops/sec
indexed charAt 3911.2 Ops/sec