Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_8_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.6 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.8.3
Mobile
one month ago
Test name Executions per second
original 747.9 Ops/sec
ES5 replace match map 282.5 Ops/sec
match without replace 335.0 Ops/sec
iteration with replace 180.2 Ops/sec
looping with exec 300.9 Ops/sec
non regex 2011.5 Ops/sec
bluetooth-le 213.4 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex

  • bluetooth-le


;