Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
4 months ago
Test name Executions per second
Array.isArray 35566064.0 Ops/sec
instanceof 12977474.0 Ops/sec
[].constructor 13407917.0 Ops/sec
Object.prototype.toString 16904650.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;