Test name | Executions per second |
---|---|
Number (with string integer) | 2745621.5 Ops/sec |
Unary + (with string integer) | 4071959.5 Ops/sec |
parseInt (with string integer) | 2822710.5 Ops/sec |
Number (with string float) | 1445025.4 Ops/sec |
Unary + (with string float) | 1784338.0 Ops/sec |
parseInt (with string float) | 1714017.9 Ops/sec |
Number (with integer) | 3047633.8 Ops/sec |
Unary + (with integer) | 4513344.5 Ops/sec |
parseInt (with integer) | 2957998.8 Ops/sec |
Number (with float) | 4496064.0 Ops/sec |
Unary + (with float) | 8636079.0 Ops/sec |
parseInt (with float) | 4230363.5 Ops/sec |
Number (with NaN) | 9018727.0 Ops/sec |
Unary + (with NaN) | 970014656.0 Ops/sec |
parseInt (with NaN) | 6509536.5 Ops/sec |