Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Chrome 53
Mac OS X 10.11.4
Other
8 years ago
Test name Executions per second
Multiple equal (false) 5964670.0 Ops/sec
Regexp (true) 5950108.5 Ops/sec
Regexp (false) 6172272.0 Ops/sec
Precocked Regexp (true) 4185786.8 Ops/sec
Precocked Regexp (false) 4411067.0 Ops/sec
Array (true) 5560029.5 Ops/sec
Array (false) 5351080.0 Ops/sec
Multiple equal (true) 11953938.0 Ops/sec
Script Preparation code:
Tests:
  • Multiple equal (false)

  • Regexp (true)

  • Regexp (false)

  • Precocked Regexp (true)

  • Precocked Regexp (false)

  • Array (true)

  • Array (false)

  • Multiple equal (true)


;