Test name | Executions per second |
---|---|
Number (with string integer) | 1982554.0 Ops/sec |
Unary + (with string integer) | 2854920.0 Ops/sec |
parseInt (with string integer) | 1994036.0 Ops/sec |
Number (with string float) | 1169534.0 Ops/sec |
Unary + (with string float) | 1496224.0 Ops/sec |
parseInt (with string float) | 1347984.0 Ops/sec |
Number (with integer) | 2078077.0 Ops/sec |
Unary + (with integer) | 3103227.0 Ops/sec |
parseInt (with integer) | 2079005.0 Ops/sec |
Number (with float) | 3033405.0 Ops/sec |
Unary + (with float) | 5933990.0 Ops/sec |
parseInt (with float) | 3035085.0 Ops/sec |
Number (with NaN) | 6205412.0 Ops/sec |
Unary + (with NaN) | 782283700.0 Ops/sec |
parseInt (with NaN) | 6071031.0 Ops/sec |