Test name | Executions per second |
---|---|
Number (with string integer) | 5406737.0 Ops/sec |
Unary + (with string integer) | 7960494.0 Ops/sec |
parseInt (with string integer) | 5739154.0 Ops/sec |
Number (with string float) | 3644618.0 Ops/sec |
Unary + (with string float) | 4575702.0 Ops/sec |
parseInt (with string float) | 4437523.0 Ops/sec |
Number (with integer) | 5905657.0 Ops/sec |
Unary + (with integer) | 8704544.0 Ops/sec |
parseInt (with integer) | 5844489.0 Ops/sec |
Number (with float) | 8711760.0 Ops/sec |
Unary + (with float) | 16566350.0 Ops/sec |
parseInt (with float) | 8358366.0 Ops/sec |
Number (with NaN) | 16848450.0 Ops/sec |
Unary + (with NaN) | 966637800.0 Ops/sec |
parseInt (with NaN) | 18356370.0 Ops/sec |