Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_8_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
Mobile Safari 15
iOS 15.8.3
Mobile
one month ago
Test name Executions per second
original 747.4 Ops/sec
ES5 replace match map 340.2 Ops/sec
match without replace 729.1 Ops/sec
iteration with replace 395.6 Ops/sec
looping with exec 608.7 Ops/sec
non regex 3582.6 Ops/sec
bluetooth-le 389.8 Ops/sec
Script Preparation code:
Tests:
  • original

  • ES5 replace match map

  • match without replace

  • iteration with replace

  • looping with exec

  • non regex

  • bluetooth-le


;