Run details:
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
Chrome 132
Mac OS X 10.15.7
Desktop
one year ago
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
HTML Preparation code:
Script Preparation code:
Tests: