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