Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Date vs Dayjs.utc() vs Dayjs().utc()
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/127.0.0.0 Safari/537.36
Browser:
Chrome 127
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Date
5357586.5 Ops/sec
dayjs().utc()
1859918.0 Ops/sec
dayjs.utc()
3102080.2 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
Script Preparation code:
dayjs.extend(window.dayjs_plugin_utc)
Tests:
Date
new Date('2000-01-01' + 'T00:00')
dayjs().utc()
dayjs('2000-01-01').utc()
dayjs.utc()
dayjs.utc('2000-01-01')