Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.101 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96
iOS 15.1
Mobile
3 years ago
Test name Executions per second
Array.isArray 18536428.0 Ops/sec
instanceof 7673033.0 Ops/sec
[].constructor 7656670.5 Ops/sec
Object.prototype.toString 7248220.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString