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) | 5868449.0 Ops/sec |
Number (with string float) | 5269336.0 Ops/sec |
Unary + (with string float) | 7012830.0 Ops/sec |
parseInt (with string float) | 5456702.0 Ops/sec |
Number (with integer) | 5364293.0 Ops/sec |
Unary + (with integer) | 6772041.0 Ops/sec |
parseInt (with integer) | 7006746.0 Ops/sec |
Number (with float) | 8369838.0 Ops/sec |
Unary + (with float) | 18604120.0 Ops/sec |
parseInt (with float) | 9866893.0 Ops/sec |
Number (with NaN) | 17893270.0 Ops/sec |
Unary + (with NaN) | 192085600.0 Ops/sec |
parseInt (with NaN) | 19079310.0 Ops/sec |