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
Date
5.4M/s
dayjs.utc()
3.1M/s
dayjs().utc()
1.9M/s
View exact numbers
Test name
Executions per second
✓
Date
5,357,586 Ops/sec
dayjs.utc()
3,102,080 Ops/sec
dayjs().utc()
1,859,918 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')