Script Preparation code:
Tests:
  • startsWith

  • cached RegExp

  • uncached RegExp

  • prefixMap

  • for function

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    startsWith
    cached RegExp
    uncached RegExp
    prefixMap
    for function

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36
Chrome 62 on Windows
View result in a separate tab
Test name Executions per second
startsWith 2662030.5 Ops/sec
cached RegExp 1704987.6 Ops/sec
uncached RegExp 2640831.5 Ops/sec
prefixMap 1703394.0 Ops/sec
for function 2051110.6 Ops/sec


;