Run details:
Mozilla/5.0 (iPad; CPU OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/95.0.4638.50 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 95
iOS 14.6
Tablet
3 years ago
Test name Executions per second
string compare 14626385.0 Ops/sec
array includes 10570140.0 Ops/sec
Script Preparation code:
Tests:
  • string compare

  • array includes