Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/121.0.6167.66 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 121
iOS 17.3
Mobile
9 months ago
Test name Executions per second
Array.isArray 21184454.0 Ops/sec
instanceof 8790013.0 Ops/sec
[].constructor 8971009.0 Ops/sec
Object.prototype.toString 10387398.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;