Test name | Executions per second |
---|---|
Number (with string integer) | 2152693.0 Ops/sec |
Unary + (with string integer) | 3114275.0 Ops/sec |
parseInt (with string integer) | 2123190.0 Ops/sec |
Number (with string float) | 1228527.0 Ops/sec |
Unary + (with string float) | 1375494.0 Ops/sec |
parseInt (with string float) | 986514.1 Ops/sec |
Number (with integer) | 1517299.0 Ops/sec |
Unary + (with integer) | 3095401.0 Ops/sec |
parseInt (with integer) | 2000404.0 Ops/sec |
Number (with float) | 3295660.0 Ops/sec |
Unary + (with float) | 6263289.0 Ops/sec |
parseInt (with float) | 3019988.0 Ops/sec |
Number (with NaN) | 6863818.0 Ops/sec |
Unary + (with NaN) | 778557600.0 Ops/sec |
parseInt (with NaN) | 5455361.0 Ops/sec |