Slow parsing of 100k lines file
-------------------------------
Key: JRUBY-2245
URL: http://jira.codehaus.org/browse/JRUBY-2245
Project: JRuby
Issue Type: Bug
Components: Performance
Affects Versions: JRuby 1.1RC2
Environment: JRuby 1.1RC2
Reporter: Vladimir Sizikov
Fix For: JRuby 1.1
The following script is *very* slow in JRuby compared to MRI:
http://pastie.org/162908
{noformat}
file = "100k.rb" # 100k lines file
# create data file, if it doesn't exist yet
unless (File.exists?(file))
File.open(file, "w+") { |f|
f.puts("a = 1")
100000.times { f.puts("a += 1") }
f.puts("p a")
}
end
if defined?(JRUBY_VERSION)
exec("jruby.bat -X-C #{file}")
else
exec("ruby #{file}")
end
# MRI is 0.3 sec
# JRuby, depending on the mode, 20 - 45 secs!!!
{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