Test name | Executions per second |
---|---|
Number (with string integer) | 5011013.0 Ops/sec |
Unary + (with string integer) | 6791675.0 Ops/sec |
parseInt (with string integer) | 5542417.0 Ops/sec |
Number (with string float) | 3988913.0 Ops/sec |
Unary + (with string float) | 5002235.0 Ops/sec |
parseInt (with string float) | 4889272.0 Ops/sec |
Number (with integer) | 6649284.0 Ops/sec |
Unary + (with integer) | 9649725.0 Ops/sec |
parseInt (with integer) | 6691829.0 Ops/sec |
Number (with float) | 9801152.0 Ops/sec |
Unary + (with float) | 18321440.0 Ops/sec |
parseInt (with float) | 4827652.0 Ops/sec |
Number (with NaN) | 15441610.0 Ops/sec |
Unary + (with NaN) | 66139740.0 Ops/sec |
parseInt (with NaN) | 19064690.0 Ops/sec |