Test name | Executions per second |
---|---|
Number (with string integer) | 2333090.0 Ops/sec |
Unary + (with string integer) | 3508057.0 Ops/sec |
parseInt (with string integer) | 2413304.0 Ops/sec |
Number (with string float) | 1539746.0 Ops/sec |
Unary + (with string float) | 1980488.0 Ops/sec |
parseInt (with string float) | 1787401.0 Ops/sec |
Number (with integer) | 2493059.0 Ops/sec |
Unary + (with integer) | 3645667.0 Ops/sec |
parseInt (with integer) | 2506797.0 Ops/sec |
Number (with float) | 3717377.0 Ops/sec |
Unary + (with float) | 7132119.0 Ops/sec |
parseInt (with float) | 3553541.0 Ops/sec |
Number (with NaN) | 7804959.0 Ops/sec |
Unary + (with NaN) | 928595300.0 Ops/sec |
parseInt (with NaN) | 5384831.0 Ops/sec |