Test name | Executions per second |
---|---|
Number (with string integer) | 1168449.0 Ops/sec |
Unary + (with string integer) | 1446014.0 Ops/sec |
parseInt (with string integer) | 1073095.0 Ops/sec |
Number (with string float) | 581010.4 Ops/sec |
Unary + (with string float) | 890738.6 Ops/sec |
parseInt (with string float) | 802123.6 Ops/sec |
Number (with integer) | 1245876.0 Ops/sec |
Unary + (with integer) | 1787420.0 Ops/sec |
parseInt (with integer) | 1213404.0 Ops/sec |
Number (with float) | 1811846.0 Ops/sec |
Unary + (with float) | 3354004.0 Ops/sec |
parseInt (with float) | 1766056.0 Ops/sec |
Number (with NaN) | 4037942.0 Ops/sec |
Unary + (with NaN) | 714488600.0 Ops/sec |
parseInt (with NaN) | 2777649.0 Ops/sec |