Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36
Chrome 84
Mac OS X 10.15.3
Desktop
4 years ago
Test name Executions per second
Instanceof 803405.2 Ops/sec
isArray 906701.7 Ops/sec
variable.constructor 943467.4 Ops/sec
variable.constructor name 1247630.1 Ops/sec
Script Preparation code:
Tests:
  • Instanceof

  • isArray

  • variable.constructor

  • variable.constructor name


;