Test name | Executions per second |
---|---|
Number (with string integer) | 2385036.0 Ops/sec |
Unary + (with string integer) | 3464843.0 Ops/sec |
parseInt (with string integer) | 2095198.0 Ops/sec |
Number (with string float) | 1101729.0 Ops/sec |
Unary + (with string float) | 1417129.0 Ops/sec |
parseInt (with string float) | 1340877.0 Ops/sec |
Number (with integer) | 2172158.0 Ops/sec |
Unary + (with integer) | 3121816.0 Ops/sec |
parseInt (with integer) | 2355906.0 Ops/sec |
Number (with float) | 3310809.0 Ops/sec |
Unary + (with float) | 6082285.0 Ops/sec |
parseInt (with float) | 3705182.0 Ops/sec |
Number (with NaN) | 8047965.0 Ops/sec |
Unary + (with NaN) | 627683800.0 Ops/sec |
parseInt (with NaN) | 5626964.0 Ops/sec |