Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
div by 3 vs mul 0.333
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 134
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Division (/ 3)
2.8 Ops/sec
Multiplication (* 0.33333)
6.6 Ops/sec
Tests:
Division (/ 3)
function testDivision(iterations) { let x = 123456; for (let i = 0; i < iterations; i++) { x = x / 3; } } testDivision(100000000);
Multiplication (* 0.33333)
function testMultiplication(iterations) { let x = 123456; for (let i = 0; i < iterations; i++) { x = x * 0.33333; } } testMultiplication(100000000);