Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140
Linux
Desktop
10 months ago
Test name Executions per second
instanceof 121985584.0 Ops/sec
typeof 1285562240.0 Ops/sec
typeof no function 1106768384.0 Ops/sec
Object.prototype.toString.call == 1449307776.0 Ops/sec
Object.prototype.toString.call === 1562626688.0 Ops/sec
Script Preparation code:
Tests:
  • instanceof

  • typeof

  • typeof no function

  • Object.prototype.toString.call ==

  • Object.prototype.toString.call ===