Test name | Executions per second |
---|---|
Number (with string integer) | 4424695.0 Ops/sec |
Unary + (with string integer) | 6386434.0 Ops/sec |
parseInt (with string integer) | 4433593.0 Ops/sec |
Number (with string float) | 2862037.0 Ops/sec |
Unary + (with string float) | 3619244.0 Ops/sec |
parseInt (with string float) | 3407502.0 Ops/sec |
Number (with integer) | 4601929.0 Ops/sec |
Unary + (with integer) | 6738908.0 Ops/sec |
parseInt (with integer) | 4539296.0 Ops/sec |
Number (with float) | 6884243.0 Ops/sec |
Unary + (with float) | 12863320.0 Ops/sec |
parseInt (with float) | 6618730.0 Ops/sec |
Number (with NaN) | 14646750.0 Ops/sec |
Unary + (with NaN) | 1021433000.0 Ops/sec |
parseInt (with NaN) | 10430460.0 Ops/sec |