Hiroshi Nakamura created JRUBY-6472:
---------------------------------------
Summary: 50x perf degradation of InvokeDynamic call to remove_const
Key: JRUBY-6472
URL: https://jira.codehaus.org/browse/JRUBY-6472
Project: JRuby
Issue Type: Bug
Components: Compiler
Affects Versions: JRuby 1.7
Environment: jruby 1.7.0.dev (ruby-1.9.3-p28) (2012-02-17 5d86783)
(Java HotSpot(TM) 64-Bit Server VM 1.7.0_04-ea) [linux-amd64-java]
Reporter: Hiroshi Nakamura
{noformat}
% jruby -Xcompile.invokedynamic=false -rbenchmark -e '5.times { puts
Benchmark.measure { 100000.times { Object.class_eval { FOO = 1; remove_const
:FOO } } } }'
0.571000 0.000000 0.571000 ( 0.571000)
0.203000 0.000000 0.203000 ( 0.203000)
0.160000 0.000000 0.160000 ( 0.161000)
0.107000 0.000000 0.107000 ( 0.107000)
0.073000 0.000000 0.073000 ( 0.074000)
% jruby -Xcompile.invokedynamic=true -rbenchmark -e '5.times { puts
Benchmark.measure { 100000.times { Object.class_eval { FOO = 1; remove_const
:FOO } } } }'
6.468000 0.000000 6.468000 ( 6.468000)
5.627000 0.000000 5.627000 ( 5.627000)
5.241000 0.000000 5.241000 ( 5.241000)
4.983000 0.000000 4.983000 ( 4.983000)
5.246000 0.000000 5.246000 ( 5.245000)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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