Date-time wars
February 3, 2024 ยท View on GitHub
A micro-benchmark of different date-time parsers and formatters.
Candidates
- ITU - Internet Time Utility - https://github.com/ethlo/itu
- Google HTTP client - com.google.api.client.util.DateTime
- Standard JDK - java.time.OffsetDateTime
Performance
Your mileage may vary. I've done my best to make sure these tests are as accurate as possible, but please do your own evaluation.
Parsing
JMH result file - Visualize JMH
Environment
Tests performed on a Lenovo P1 G6 laptop:
- Intel(R) Core(TM) i9-13900H
- Ubuntu 23.10
- OpenJDK version 17.0.9
Run tests yourself
mvn jmh:benchmark
To group the results and create the result file, you can run plot.py, for example:
python3 plot.py