Script Preparation code:
Tests:
  • .startsWith forEach

  • .charAt forEach

  • [0] forEach

  • .match forEach

  • .startsWith

  • .charAt

  • [0]

  • .match

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .startsWith forEach
    .charAt forEach
    [0] forEach
    .match forEach
    .startsWith
    .charAt
    [0]
    .match

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15
Safari 17 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
.startsWith forEach 3857820.8 Ops/sec
.charAt forEach 8148024.0 Ops/sec
[0] forEach 7509406.5 Ops/sec
.match forEach 3467860.0 Ops/sec
.startsWith 3963526.0 Ops/sec
.charAt 9492885.0 Ops/sec
[0] 8493414.0 Ops/sec
.match 7197429.5 Ops/sec


;