Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    instanceof
    typeof
    typeof no function
    Object.prototype.toString.call
    Object.prototype.toString.call reverse
    constructor
    costructor reverse
    costructor ?.
    constructor.name ?.
    constructor.name ?. reverse

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Chrome 139 on Windows
View result in a separate tab
typeof no function
150.3M/s
constructor
141.8M/s
costructor ?.
141.3M/s
costructor reverse
140.9M/s
typeof
130.3M/s
instanceof
103.4M/s
Object.prototype.toString.call
75.5M/s
Object.prototype.toString.call reverse
71.8M/s
constructor.name ?.
53.5M/s
constructor.name ?. reverse
52.2M/s
View exact numbers
Test name Executions per second
typeof no function 150,293,360 Ops/sec
constructor 141,803,200 Ops/sec
costructor ?. 141,261,856 Ops/sec
costructor reverse 140,911,408 Ops/sec
typeof 130,307,720 Ops/sec
instanceof 103,426,640 Ops/sec
Object.prototype.toString.call 75,461,896 Ops/sec
Object.prototype.toString.call reverse 71,820,624 Ops/sec
constructor.name ?. 53,540,336 Ops/sec
constructor.name ?. reverse 52,193,756 Ops/sec