Test name | Executions per second |
---|---|
Number (with string integer) | 2145652.0 Ops/sec |
Unary + (with string integer) | 2478987.0 Ops/sec |
parseInt (with string integer) | 2121550.0 Ops/sec |
Number (with string float) | 1322752.0 Ops/sec |
Unary + (with string float) | 1743085.0 Ops/sec |
parseInt (with string float) | 1481599.0 Ops/sec |
Number (with integer) | 2210578.0 Ops/sec |
Unary + (with integer) | 1756548.0 Ops/sec |
parseInt (with integer) | 1098890.0 Ops/sec |
Number (with float) | 3239208.0 Ops/sec |
Unary + (with float) | 6130835.0 Ops/sec |
parseInt (with float) | 3170059.0 Ops/sec |
Number (with NaN) | 7204022.0 Ops/sec |
Unary + (with NaN) | 954354800.0 Ops/sec |
parseInt (with NaN) | 5425111.0 Ops/sec |