Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
Chrome 87
Mac OS X 10.11.6
Desktop
4 years ago
Test name Executions per second
Instanceof 1203341.9 Ops/sec
isArray 1193472.9 Ops/sec
variable.constructor 1202323.6 Ops/sec
variable.constructor name 1661284.9 Ops/sec
Script Preparation code:
Tests:
  • Instanceof

  • isArray

  • variable.constructor

  • variable.constructor name