Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Date string compare vs Luxon.hasSame
(version: 1)
Comparing performance of:
string comparison vs luxon hasSame
Created:
one year ago
by:
Guest
Go to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/luxon@1.26.0/build/global/luxon.min.js"></script>
Script Preparation code:
window.ds = "2020-02-19T00:51:53.623839+00:00";
Tests:
string comparison
ds.substr(0, 10) === ds.substr(0, 10)
luxon hasSame
luxon.DateTime.fromISO(ds).hasSame(luxon.DateTime.fromISO(ds), 'day');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
string comparison
luxon hasSame
Fastest:
N/A
Slowest:
N/A
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/131.0.0.0 Safari/537.36
Browser/OS:
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
string comparison
6.9M/s
luxon hasSame
110K/s
View exact numbers
Test name
Executions per second
✓
string comparison
6,925,272 Ops/sec
luxon hasSame
109,573 Ops/sec
Related benchmarks
luxon vs Date
luxon parse datetime vs time interval
luxon3 vs datefns
luxon 3.3.0 vs datefns
Comments
Confirm delete:
Do you really want to delete benchmark?