builder library is slower in JRuby than in MRI
----------------------------------------------
Key: JRUBY-3211
URL: http://jira.codehaus.org/browse/JRUBY-3211
Project: JRuby
Issue Type: Bug
Components: Performance
Reporter: Charles Oliver Nutter
We start to do better after a long warmup like 20k, but a shorter warmup (like
5k) and we're still pretty slow. Seems like there's something we could improve
here.
{noformat}
require "rubygems"
require "builder"
require "rbench"
20_000.times do
b = Builder::XmlMarkup.new
b.date do
b.year "2008"
b.month "December"
b.day "2"
end
end
RBench.run(20_000) do
report("simple") do
b = Builder::XmlMarkup.new
b.date do
b.year "2008"
b.month "December"
b.day "2"
end
end
end
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email