Test name | Executions per second |
---|---|
Number (with string integer) | 15408720.0 Ops/sec |
Unary + (with string integer) | 28393820.0 Ops/sec |
parseInt (with string integer) | 16777990.0 Ops/sec |
Number (with string float) | 3227645.0 Ops/sec |
Unary + (with string float) | 3477347.0 Ops/sec |
parseInt (with string float) | 4251236.0 Ops/sec |
Number (with integer) | 49667860.0 Ops/sec |
Unary + (with integer) | 922921800.0 Ops/sec |
parseInt (with integer) | 48965770.0 Ops/sec |
Number (with float) | 53104190.0 Ops/sec |
Unary + (with float) | 997542800.0 Ops/sec |
parseInt (with float) | 43470740.0 Ops/sec |
Number (with NaN) | 23818070.0 Ops/sec |
Unary + (with NaN) | 1208876000.0 Ops/sec |
parseInt (with NaN) | 36330560.0 Ops/sec |