Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Number vs + vs parseFloat vs Divide
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Browser:
Chrome 131
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Number
3984265.5 Ops/sec
Unary +
5404016.5 Ops/sec
parseFloat
4015968.2 Ops/sec
times by 100 and divide
6911009.0 Ops/sec
Tests:
Number
var number = Number(Math.random().toString());
Unary +
var unary = +Math.random().toString();
parseFloat
var parse = parseFloat(Math.random().toString());
times by 100 and divide
var divide = Math.round(Math.random() * 100) / 100