Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
substring 48388232.0 Ops/sec
replace inline regex 21897436.0 Ops/sec
replace compiled regex var 22177618.0 Ops/sec
slice 83922728.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice


;