Test name | Executions per second |
---|---|
Number (with string integer) | 4802030.0 Ops/sec |
Unary + (with string integer) | 6923608.0 Ops/sec |
parseInt (with string integer) | 3353665.0 Ops/sec |
Number (with string float) | 2905339.0 Ops/sec |
Unary + (with string float) | 3750469.0 Ops/sec |
parseInt (with string float) | 3524298.0 Ops/sec |
Number (with integer) | 5033133.0 Ops/sec |
Unary + (with integer) | 7418831.0 Ops/sec |
parseInt (with integer) | 5002495.0 Ops/sec |
Number (with float) | 7477477.0 Ops/sec |
Unary + (with float) | 14194310.0 Ops/sec |
parseInt (with float) | 7216493.0 Ops/sec |
Number (with NaN) | 15443440.0 Ops/sec |
Unary + (with NaN) | 1031894000.0 Ops/sec |
parseInt (with NaN) | 12034340.0 Ops/sec |