Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Firefox 47
Windows
Other
8 years ago
Test name Executions per second
parseHex1 115.2 Ops/sec
parseHex2 77.8 Ops/sec
parseHex3 30.2 Ops/sec
parseHex4 85.3 Ops/sec
parseHex5 875.2 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex


;