Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.36
Opera 56
Windows
Desktop
6 years ago
Test name Executions per second
indexOf 5023526.5 Ops/sec
No cached regex 3211529.2 Ops/sec
Cached regex 1980502.2 Ops/sec
includes 3705746.2 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • No cached regex

  • Cached regex

  • includes


;