Run details:
Mozilla/5.0 (Linux; Android 15; Pixel 8 Pro Build/AP3A.241005.015; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.100 Mobile Safari/537.36
Chrome Mobile 129
Android
Mobile
one month ago
Test name Executions per second
original 1265.6 Ops/sec
ES5 replace match map 530.6 Ops/sec
match without replace 1169.4 Ops/sec
iteration with replace 531.5 Ops/sec
looping with exec 1155.0 Ops/sec
non regex 5113.8 Ops/sec
bluetooth-le 550.6 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex

  • bluetooth-le


;