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