Test name | Executions per second |
---|---|
Number (with string integer) | 26658420.0 Ops/sec |
Unary + (with string integer) | 26949690.0 Ops/sec |
parseInt (with string integer) | 631521900.0 Ops/sec |
Number (with string float) | 2857143.0 Ops/sec |
Unary + (with string float) | 2888994.0 Ops/sec |
parseInt (with string float) | 664442900.0 Ops/sec |
Number (with integer) | 24996240.0 Ops/sec |
Unary + (with integer) | 628573700.0 Ops/sec |
parseInt (with integer) | 653822500.0 Ops/sec |
Number (with float) | 28933560.0 Ops/sec |
Unary + (with float) | 637370800.0 Ops/sec |
parseInt (with float) | 646396600.0 Ops/sec |
Number (with NaN) | 583592300.0 Ops/sec |
Unary + (with NaN) | 641475900.0 Ops/sec |
parseInt (with NaN) | 640161400.0 Ops/sec |