Run details:
Mozilla/5.0 (Linux; Android 11; motorola one hyper) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.196 Mobile Safari/537.36 OPR/76.2.4027.73374
Opera Mobile 76
Android
Mobile
one year ago
Test name Executions per second
substring and substring 1484876.8 Ops/sec
replace inline regex 1744283.5 Ops/sec
replace compiled regex var 1373704.1 Ops/sec
brackets and substring 1493044.1 Ops/sec
brackets and slice 1488261.2 Ops/sec
substring and slice 1502688.6 Ops/sec
brackets and substr (legacy) 1477141.6 Ops/sec
substr and substr (legacy) 1477327.9 Ops/sec
Script Preparation code:
Tests:
  • substring and substring

  • replace inline regex

  • replace compiled regex var

  • brackets and substring

  • brackets and slice

  • substring and slice

  • brackets and substr (legacy)

  • substr and substr (legacy)


;