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 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser:
Firefox 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Division (/ 3)
3.6 Ops/sec
Multiplication (* 0.33333)
11.8 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);