Run details:
Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
Safari 5
Windows 8
Other
8 years ago
Test name Executions per second
parseHex1 69.8 Ops/sec
parseHex2 67.8 Ops/sec
parseHex3 34.2 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex