eval is slower than MRI
-----------------------
Key: JRUBY-4593
URL: http://jira.codehaus.org/browse/JRUBY-4593
Project: JRuby
Issue Type: Improvement
Environment: linux (windows is probably the opposite)
Reporter: Roger Pack
Assignee: Thomas E Enebo
Priority: Minor
This may be a dupe, but since you wanted bug reports on slowdowns..
re: http://www.ruby-forum.com/topic/204693#new
a = File.read
'/home/rdp/installs/ruby-1.9.1-p376_installed/lib/ruby/site_ruby/1.9.1/rubygems.rb'
Benchmark.realtime { 10.times { eval a }}
(after a warmup)
with 1.9 MRI:
1.6s
with 1.8.7 MRI
0.9s
with jruby --server
4.2s
with jruby --client
2.9s
(related, the following is also 10x slower on jruby
Benchmark.realtime { 10000.times { eval ' '}}
)
Just as a note.
Thanks.
-rp
--
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