Test name | Executions per second |
---|---|
Number (with string integer) | 15702560.0 Ops/sec |
Unary + (with string integer) | 31851690.0 Ops/sec |
parseInt (with string integer) | 17834630.0 Ops/sec |
Number (with string float) | 2368161.0 Ops/sec |
Unary + (with string float) | 2459959.0 Ops/sec |
parseInt (with string float) | 4456438.0 Ops/sec |
Number (with integer) | 47454170.0 Ops/sec |
Unary + (with integer) | 1185195000.0 Ops/sec |
parseInt (with integer) | 47792300.0 Ops/sec |
Number (with float) | 51047090.0 Ops/sec |
Unary + (with float) | 1617298000.0 Ops/sec |
parseInt (with float) | 42157980.0 Ops/sec |
Number (with NaN) | 25356770.0 Ops/sec |
Unary + (with NaN) | 1554607000.0 Ops/sec |
parseInt (with NaN) | 38820460.0 Ops/sec |