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