Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3775.0 Safari/537.36
Chrome 76
Mac OS X 10.14.0
Desktop
5 years ago
Test name Executions per second
indexOf 5813602.0 Ops/sec
No cached regex 3688091.5 Ops/sec
Cached regex 1895945.6 Ops/sec
includes 4029178.2 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • No cached regex

  • Cached regex

  • includes


;