Test case name | Result |
---|---|
instanceof | |
key | |
double key | |
obj maybe null | |
obj typeof "object" |
Test name | Executions per second |
---|---|
instanceof | 5781176.5 Ops/sec |
key | 12380648.0 Ops/sec |
double key | 5298325.0 Ops/sec |
obj maybe null | 9945764.0 Ops/sec |
obj typeof "object" | 9649779.0 Ops/sec |