Check first character 2

3 months ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
Test name Executions per second
charAt 332867900.0 Ops/sec
startsWith 20737570.0 Ops/sec
string index 417262800.0 Ops/sec
Tests:
  • charAt

  • startsWith

  • string index

Open this result on MeasureThat.net