Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Ubuntu
Desktop
8 months ago
Test name Executions per second
substring 278419104.0 Ops/sec
replace inline regex 14149906.0 Ops/sec
replace compiled regex var 14072165.0 Ops/sec
slice 271792768.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice


;