Test name | Executions per second |
---|---|
Number (with string integer) | 1776089.0 Ops/sec |
Unary + (with string integer) | 2904338.0 Ops/sec |
parseInt (with string integer) | 2062028.0 Ops/sec |
Number (with string float) | 1132270.0 Ops/sec |
Unary + (with string float) | 1446217.0 Ops/sec |
parseInt (with string float) | 1219123.0 Ops/sec |
Number (with integer) | 1692901.0 Ops/sec |
Unary + (with integer) | 2174857.0 Ops/sec |
parseInt (with integer) | 1703164.0 Ops/sec |
Number (with float) | 3059589.0 Ops/sec |
Unary + (with float) | 5843600.0 Ops/sec |
parseInt (with float) | 2873472.0 Ops/sec |
Number (with NaN) | 6440361.0 Ops/sec |
Unary + (with NaN) | 593298500.0 Ops/sec |
parseInt (with NaN) | 6422659.0 Ops/sec |