Test name | Executions per second |
---|---|
Number (with string integer) | 5931248.0 Ops/sec |
Unary + (with string integer) | 8227985.0 Ops/sec |
parseInt (with string integer) | 5868448.5 Ops/sec |
Number (with string float) | 5269336.0 Ops/sec |
Unary + (with string float) | 7012829.5 Ops/sec |
parseInt (with string float) | 5456702.0 Ops/sec |
Number (with integer) | 5364293.0 Ops/sec |
Unary + (with integer) | 6772040.5 Ops/sec |
parseInt (with integer) | 7006745.5 Ops/sec |
Number (with float) | 8369837.5 Ops/sec |
Unary + (with float) | 18604116.0 Ops/sec |
parseInt (with float) | 9866893.0 Ops/sec |
Number (with NaN) | 17893268.0 Ops/sec |
Unary + (with NaN) | 192085632.0 Ops/sec |
parseInt (with NaN) | 19079310.0 Ops/sec |