Script Preparation code:
Tests:

Historical Performance Data aggregated from 13 community runs

Desktop Results:
Chrome 13 runs
instanceof
159.4M/s
field
158.6M/s
constructor.name
57.8M/s

Fastest: instanceof (2.8x faster)

View exact numbers
  • instanceof: 159,417,280 ops/sec
  • field: 158,618,256 ops/sec
  • constructor.name: 57,824,172 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    instanceof
    constructor.name
    field

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 Edg/149.0.0.0
Chrome 149 on Windows
View result in a separate tab
instanceof
127.2M/s
field
126.6M/s
constructor.name
37.4M/s
View exact numbers
Test name Executions per second
instanceof 127,204,504 Ops/sec
field 126,593,456 Ops/sec
constructor.name 37,426,860 Ops/sec