Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
2 years ago
Benchmark.js
Array.isArray
16.9M/s
Object.prototype.toString
8.3M/s
[].constructor
6.9M/s
instanceof
6.7M/s
View exact numbers
Test name Executions per second
Array.isArray 16,899,470 Ops/sec
Object.prototype.toString 8,318,581 Ops/sec
[].constructor 6,895,558 Ops/sec
instanceof 6,703,662 Ops/sec
Script Preparation code:
Tests: