Speed comparison at the time of generation at the time of date conversion

When looking from a performance point of view simpleDsteFormat DateTimeFormatter The difference with

There are differences depending on the environment in which it is used, It seems that there is not much difference at 10,000 times, When using a large amount of data, there are differences.

The cause is simpleDsteFormat is not thread-safe, so generate it every time. DateTimeFormatter is thread-safe so you don't have to generate it every time.

Simply write simpleDsteFormat is generated every time it is called. DateTimeFormatter is generated only once.

I wonder if the time to generate is a problem.

Recommended Posts

Speed comparison at the time of generation at the time of date conversion
The date time of java8 has been updated
Conversion of String, Date, LocalDate
[Java] Type conversion speed comparison
[Android] Exit the activity of the transition source at the time of screen transition
About the behavior at the time of error of Files.copy (pathA, pathB)
[Java] Speed comparison of string concatenation
Check the actual date and time at parse with Java's SimpleDateFormat
The design concept of Java's Date and Time API is interesting
[Rails] About Uglifier :: Error: Unexpected token: at the time of deployment
What you are doing in the confirmation at the time of gem update
Email sending function with Action Mailer at the time of new registration
How to implement the email authentication function at the time of user registration
Explanation of Ruby Time and Date objects
[Java] How to set the Date time to 00:00:00
[Rails 6] Change redirect destination at the time of new registration / login by devise
[Heroku] At the time of deployment We're sorry, but something went wrong. Solution
The story of low-level string comparison in Java
Compare the speed of the for statement and the extended for statement.
About date / time type of Doma2 entity class
[Note] Java: Measures the speed of string concatenation
Set the time of LocalDateTime to a specific time
Feel the passage of time even in Java
[Verification] Comparison of Spring Boot vs Micronaut boot speed
Environment construction method and troubleshooter at the time of joint development (rails, docker and github)
Speed comparison when the value side of Hash wants to retrieve all with array
I tried to create a log reproduction script at the time of apt install
[JavaScript] I can't get the response body at the time of error with axios (ajax)