Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Chrome 53
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
Multiple equal (false) 5267060.5 Ops/sec
Regexp (true) 5438396.5 Ops/sec
Regexp (false) 5412283.0 Ops/sec
Precocked Regexp (true) 3700226.2 Ops/sec
Precocked Regexp (false) 3770755.8 Ops/sec
Array (true) 3979890.0 Ops/sec
Array (false) 4366889.5 Ops/sec
Multiple equal (true) 9968948.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)


;