Test name | Executions per second |
---|---|
Number (with string integer) | 7839752.0 Ops/sec |
Unary + (with string integer) | 11300320.0 Ops/sec |
parseInt (with string integer) | 7854801.0 Ops/sec |
Number (with string float) | 4875616.0 Ops/sec |
Unary + (with string float) | 6019896.0 Ops/sec |
parseInt (with string float) | 5673597.0 Ops/sec |
Number (with integer) | 8121843.0 Ops/sec |
Unary + (with integer) | 12083530.0 Ops/sec |
parseInt (with integer) | 8245798.0 Ops/sec |
Number (with float) | 12122710.0 Ops/sec |
Unary + (with float) | 22854590.0 Ops/sec |
parseInt (with float) | 11678410.0 Ops/sec |
Number (with NaN) | 24614620.0 Ops/sec |
Unary + (with NaN) | 261015300.0 Ops/sec |
parseInt (with NaN) | 23948370.0 Ops/sec |