Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Ubuntu
Desktop
one year ago
Test name Executions per second
Array.isArray 544587520.0 Ops/sec
instanceof 110373240.0 Ops/sec
[].constructor 403713536.0 Ops/sec
Object.prototype.toString 143471952.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString