Test name | Executions per second |
---|---|
Number | 1519076.4 Ops/sec |
Unary + | 1913741.6 Ops/sec |
parseFloat | 1492007.8 Ops/sec |
var number = Number(Math.random().toString());
var unary = +Math.random().toString();
var parse = parseFloat(Math.random().toString());