Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
Chrome 46
Windows
Other
8 years ago
Test name Executions per second
parseHex1 115.3 Ops/sec
parseHex2 132.4 Ops/sec
parseHex3 84.2 Ops/sec
parseHex4 60.9 Ops/sec
parseHex5 301.2 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex


;