Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Chrome 70
Windows
Desktop
6 years ago
Test name Executions per second
exec() clean 1212704.1 Ops/sec
exec() fair using substring 738819.9 Ops/sec
search() and test() using substring 565492.6 Ops/sec
search() and test() using substr 560729.1 Ops/sec
search() and test() using slice 558457.2 Ops/sec
Script Preparation code:
Tests:
  • exec() clean

  • exec() fair using substring

  • search() and test() using substring

  • search() and test() using substr

  • search() and test() using slice


;