Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/123.0.6312.52 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 123
iOS 17.3
Mobile
7 months ago
Test name Executions per second
substring 8409521.0 Ops/sec
replace inline regex 7098706.5 Ops/sec
replace compiled regex var 5721914.5 Ops/sec
slice 10427350.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice


;