| Test case name | Result |
|---|---|
| Number (with string integer) | |
| Unary + (with string integer) | |
| parseInt (with string integer) | |
| Number (with string float) | |
| Unary + (with string float) | |
| parseInt (with string float) | |
| Number (with integer) | |
| Unary + (with integer) | |
| parseInt (with integer) | |
| Number (with float) | |
| Unary + (with float) | |
| parseInt (with float) | |
| Number (with NaN) | |
| Unary + (with NaN) | |
| parseInt (with NaN) |
| Test name | Executions per second |
|---|---|
| Number (with string integer) | 63153728.0 Ops/sec |
| Unary + (with string integer) | 43665928.0 Ops/sec |
| parseInt (with string integer) | 38442036.0 Ops/sec |
| Number (with string float) | 7397961.5 Ops/sec |
| Unary + (with string float) | 7671953.5 Ops/sec |
| parseInt (with string float) | 8629276.0 Ops/sec |
| Number (with integer) | 78157392.0 Ops/sec |
| Unary + (with integer) | 73983024.0 Ops/sec |
| parseInt (with integer) | 58755068.0 Ops/sec |
| Number (with float) | 74036704.0 Ops/sec |
| Unary + (with float) | 76626736.0 Ops/sec |
| parseInt (with float) | 53077900.0 Ops/sec |
| Number (with NaN) | 133550008.0 Ops/sec |
| Unary + (with NaN) | 128934136.0 Ops/sec |
| parseInt (with NaN) | 123709656.0 Ops/sec |