Test name | Executions per second |
---|---|
Number (with string integer) | 978572.9 Ops/sec |
Unary + (with string integer) | 1453354.0 Ops/sec |
parseInt (with string integer) | 1021453.0 Ops/sec |
Number (with string float) | 810759.5 Ops/sec |
Unary + (with string float) | 1056468.0 Ops/sec |
parseInt (with string float) | 910046.1 Ops/sec |
Number (with integer) | 1129968.0 Ops/sec |
Unary + (with integer) | 1619260.0 Ops/sec |
parseInt (with integer) | 1113514.0 Ops/sec |
Number (with float) | 1563473.0 Ops/sec |
Unary + (with float) | 2915542.0 Ops/sec |
parseInt (with float) | 1628027.0 Ops/sec |
Number (with NaN) | 2994575.0 Ops/sec |
Unary + (with NaN) | 10700810.0 Ops/sec |
parseInt (with NaN) | 2642588.0 Ops/sec |