Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Chrome 148
Windows
Desktop
10 days ago
Test name Executions per second
indexOf 181930496.0 Ops/sec
No cached regex 19755024.0 Ops/sec
Cached regex 21320882.0 Ops/sec
includes 184304384.0 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • No cached regex

  • Cached regex

  • includes