Test name | Executions per second |
---|---|
Number (with string integer) | 3219231.0 Ops/sec |
Unary + (with string integer) | 4605560.0 Ops/sec |
parseInt (with string integer) | 3252124.0 Ops/sec |
Number (with string float) | 1648379.0 Ops/sec |
Unary + (with string float) | 2161756.0 Ops/sec |
parseInt (with string float) | 1950424.0 Ops/sec |
Number (with integer) | 3476380.0 Ops/sec |
Unary + (with integer) | 5353618.0 Ops/sec |
parseInt (with integer) | 3331215.0 Ops/sec |
Number (with float) | 5152657.0 Ops/sec |
Unary + (with float) | 9780863.0 Ops/sec |
parseInt (with float) | 5009051.0 Ops/sec |
Number (with NaN) | 10995380.0 Ops/sec |
Unary + (with NaN) | 828804400.0 Ops/sec |
parseInt (with NaN) | 6770004.0 Ops/sec |