Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Big vs small numbers
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/132.0.0.0 Safari/537.36
Browser:
Chrome 132
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
working with millis then converting
134064784.0 Ops/sec
working with minutes directly
147230592.0 Ops/sec
working with minutes directly (with a wrapped function call to see if that causes slowness)
138801936.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const large = 11294810293810000; const smaller = large / 60000; function millisToMins(millis) { return millis / 60000; } function doesNothing(input) { return input; }
Tests:
working with millis then converting
millisToMins(large / 12131 * 1237)
working with minutes directly
smaller / 12131 * 1237
working with minutes directly (with a wrapped function call to see if that causes slowness)
doesNothing(smaller / 12131 * 1237)
more wrapping to see performance impact
doesNothing(doesNothing(doesNothing(doesNothing(doesNothing(smaller / 12131 * 1237)))))