Script Preparation code:
AخA
 
var s = "hello";
Tests:
  • Array access

     
    var c = s[0];
  • substring

     
    var c = s.substring(0, 1);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array access
    substring

    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:101.0) Gecko/20100101 Firefox/101.0
Firefox 101 on Ubuntu
View result in a separate tab
Test name Executions per second
Array access 819796224.0 Ops/sec
substring 138376832.0 Ops/sec