Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
Chrome Mobile 130
Android
Mobile
one month ago
Test name Executions per second
original 1262.6 Ops/sec
ES5 replace match map 523.9 Ops/sec
match without replace 1103.7 Ops/sec
iteration with replace 533.2 Ops/sec
looping with exec 1051.0 Ops/sec
non regex 4594.7 Ops/sec
bluetooth-le 544.3 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex

  • bluetooth-le


;