Tests:
-
instanceof
-
string type
-
string type + undefined
-
Number property
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
string type + undefined
118.3M/s
View exact numbers
| Test name |
Executions per second |
|
✓
string type
|
124,998,824 Ops/sec |
|
string type + undefined
|
118,310,672 Ops/sec |
|
instanceof
|
115,061,000 Ops/sec |
|
Number property
|
114,443,312 Ops/sec |
Do you really want to delete benchmark?