Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121
Android
Mobile
2 years ago
Benchmark.js
typeof -> function
737K/s
Object.prototype.toString.call -> boolean
319K/s
Object.prototype.toString.call -> string
316K/s
Object.prototype.toString.call -> object
310K/s
Object.prototype.toString.call -> function
309K/s
View exact numbers
| Test name |
Executions per second |
|
✓
typeof -> boolean
|
769,201 Ops/sec |
|
typeof -> object
|
755,360 Ops/sec |
|
typeof -> string
|
754,077 Ops/sec |
|
typeof -> function
|
737,006 Ops/sec |
|
Object.prototype.toString.call -> boolean
|
319,210 Ops/sec |
|
Object.prototype.toString.call -> string
|
315,579 Ops/sec |
|
Object.prototype.toString.call -> object
|
310,030 Ops/sec |
|
Object.prototype.toString.call -> function
|
309,162 Ops/sec |
Tests:
-
typeof -> string
-
Object.prototype.toString.call -> string
-
typeof -> boolean
-
Object.prototype.toString.call -> boolean
-
typeof -> object
-
Object.prototype.toString.call -> object
-
typeof -> function
-
Object.prototype.toString.call -> function