Test name | Executions per second |
---|---|
Number (with string integer) | 3231286.0 Ops/sec |
Unary + (with string integer) | 4170423.0 Ops/sec |
parseInt (with string integer) | 3270821.0 Ops/sec |
Number (with string float) | 1791099.0 Ops/sec |
Unary + (with string float) | 2088617.0 Ops/sec |
parseInt (with string float) | 2150533.0 Ops/sec |
Number (with integer) | 3378666.0 Ops/sec |
Unary + (with integer) | 4878483.0 Ops/sec |
parseInt (with integer) | 3406102.0 Ops/sec |
Number (with float) | 4920652.0 Ops/sec |
Unary + (with float) | 9179648.0 Ops/sec |
parseInt (with float) | 4652590.0 Ops/sec |
Number (with NaN) | 9181364.0 Ops/sec |
Unary + (with NaN) | 133466600.0 Ops/sec |
parseInt (with NaN) | 9577154.0 Ops/sec |