Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Mac OS X 10.15.7
Desktop
8 months ago
Test name Executions per second
Testing Regex, Length 1 112.6 Ops/sec
Testing Regex, Length 10 628.7 Ops/sec
Testing Regex, Length 100 1774.2 Ops/sec
Testing Regex, Length 9 kB 2232.3 Ops/sec
Testing Slice, Length 1 54.5 Ops/sec
Testing Slice, Length 10 465.4 Ops/sec
Testing Slice, Length 100 4541.1 Ops/sec
Testing Slice, Length 9 kB 479225.9 Ops/sec
Script Preparation code:
Tests:
  • Testing Regex, Length 1

  • Testing Regex, Length 10

  • Testing Regex, Length 100

  • Testing Regex, Length 9 kB

  • Testing Slice, Length 1

  • Testing Slice, Length 10

  • Testing Slice, Length 100

  • Testing Slice, Length 9 kB


;