-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date and DateTime parsing slower than 1.7 and much slower than MRI #3640
Comments
9K still doing noticeably worse than 1.7, invented a new benchmark script : require 'benchmark'
require 'date'
string = "2016-02-03T17:44:04Z"
Benchmark.bmbm do |x|
x.report("Date#parse") { 100_000.times{ Date.parse(string) } }
x.report("DateTime#parse") { 100_000.times { DateTime.parse(string) } }
end 2.3.3
1.7.25
9.1.7.0
|
More work needed here than we have time for in 9.1.8.0, but I want to work on this for 9.2. I'll re-target. Note that I had some patches in #1662 that seemed to help, and there's a bit of Java integration happening here that we don't optimize as well as we could (e.g. indy does not bind directly but still goes through reflection). |
believe work at #4635 (+ more commits already on master) resolves this to much acceptable numbers |
1.7.23:
9.0.5.0:
MRI 2.3.0
The text was updated successfully, but these errors were encountered: