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
147.2M/s
working with minutes directly (with a wrapped function call to see if that causes slowness)
138.8M/s
working with millis then converting
134.1M/s
View exact numbers
Test name Executions per second
working with minutes directly 147,230,592 Ops/sec
working with minutes directly (with a wrapped function call to see if that causes slowness) 138,801,936 Ops/sec
working with millis then converting 134,064,784 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: