Test name | Executions per second |
---|---|
Number (with string integer) | 5452150.0 Ops/sec |
Unary + (with string integer) | 4129739.0 Ops/sec |
parseInt (with string integer) | 5569950.0 Ops/sec |
Number (with string float) | 5653517.0 Ops/sec |
Unary + (with string float) | 7893255.0 Ops/sec |
parseInt (with string float) | 5771878.0 Ops/sec |
Number (with integer) | 6371984.0 Ops/sec |
Unary + (with integer) | 9559237.0 Ops/sec |
parseInt (with integer) | 6412734.0 Ops/sec |
Number (with float) | 7310432.0 Ops/sec |
Unary + (with float) | 17624040.0 Ops/sec |
parseInt (with float) | 9412235.0 Ops/sec |
Number (with NaN) | 16902120.0 Ops/sec |
Unary + (with NaN) | 469318600.0 Ops/sec |
parseInt (with NaN) | 17598680.0 Ops/sec |