Array access VS substring

3 months ago
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0
Test name Executions per second
Array access 819796200.0 Ops/sec
substring 138376800.0 Ops/sec
Script Preparation code:
Tests:
  • Array access

  • substring

Open this result on MeasureThat.net