Test name | Executions per second |
---|---|
Number | 1597411.2 Ops/sec |
Unary + | 2099527.8 Ops/sec |
parseInt | 1939469.2 Ops/sec |
var number = Number(Math.random().toString());
var unary = +Math.random().toString();
var parse = parseInt(Math.random().toString(), 10);