Test name | Executions per second |
---|---|
Number (with string integer) | 1703722.0 Ops/sec |
Unary + (with string integer) | 2525229.0 Ops/sec |
parseInt (with string integer) | 1728617.0 Ops/sec |
Number (with string float) | 940537.2 Ops/sec |
Unary + (with string float) | 1224855.0 Ops/sec |
parseInt (with string float) | 1087256.0 Ops/sec |
Number (with integer) | 1809800.0 Ops/sec |
Unary + (with integer) | 2664294.0 Ops/sec |
parseInt (with integer) | 1773686.0 Ops/sec |
Number (with float) | 2692126.0 Ops/sec |
Unary + (with float) | 5246410.0 Ops/sec |
parseInt (with float) | 2591224.0 Ops/sec |
Number (with NaN) | 5472818.0 Ops/sec |
Unary + (with NaN) | 501199000.0 Ops/sec |
parseInt (with NaN) | 3665444.0 Ops/sec |