Date and DateTime parsing slower than 1.7 and much slower than MRI #3640
Labels
Milestone
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1.7.23:
9.0.5.0:
MRI 2.3.0
The text was updated successfully, but these errors were encountered: