Tests:
working with millis then converting
working with minutes directly
working with minutes directly (with a wrapped function call to see if that causes slowness)
more wrapping to see performance impact
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago )
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/OS:
Chrome 132 on Mac OS X 10.15.7
View result in a separate tab
Embed
working with minutes directly (with a wrapped function call to see if that causes slowness)
153.8M/s
working with minutes directly
152.3M/s
working with millis then converting
135.2M/s
more wrapping to see performance impact
125.2M/s
View exact numbers
Test name
Executions per second
✓
working with minutes directly (with a wrapped function call to see if that causes slowness)
153,816,896 Ops/sec
working with minutes directly
152,305,872 Ops/sec
working with millis then converting
135,226,016 Ops/sec
more wrapping to see performance impact
125,217,944 Ops/sec
Do you really want to delete benchmark?