String Search JS

4 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Test name Executions per second
substr 9576359.0 Ops/sec
substring 9133603.0 Ops/sec
Script Preparation code:
Tests:
  • substr

  • substring

Open this result on MeasureThat.net