Re: JRuby invokedynamic updates for November

2011-12-01 Thread Charles Oliver Nutter
On Wed, Nov 30, 2011 at 9:52 PM, Stephen Bannasch stephen.banna...@deanbrook.org wrote: At 3:03 PM -0500 11/30/11, Stephen Bannasch wrote: Benchmark code here: https://gist.github.com/1410423 The hpricot benchmark is also slowed down consdierably. I have found more issues in my invokedynamic

Re: JRuby invokedynamic updates for November

2011-12-01 Thread Charles Oliver Nutter
On Thu, Dec 1, 2011 at 2:23 AM, Charles Oliver Nutter head...@headius.com wrote: I am still seeing rebinding in profiles of some of the remaining slow benchmarks, so I'm missing something. Bleah, I seem to have found the problem. If I disable the use of SwitchPoint for

Re: JRuby invokedynamic updates for November

2011-12-01 Thread Stephen Bannasch
At 3:29 AM -0600 12/1/11, Charles Oliver Nutter wrote: This is a pretty disappointing finding. I'm not yet sure whether it's a bug in SwitchPoint optimization or in JRuby's use of SwitchPoint, but I'd like to see your numbers with and without this flag. Latest JRuby master, on Java 1.6.0_27,

Re: JRuby invokedynamic updates for November

2011-12-01 Thread Charles Oliver Nutter
On Thu, Dec 1, 2011 at 9:47 AM, Stephen Bannasch stephen.banna...@deanbrook.org wrote: At 3:29 AM -0600 12/1/11, Charles Oliver Nutter wrote: This is a pretty disappointing finding. I'm not yet sure whether it's a bug in SwitchPoint optimization or in JRuby's use of SwitchPoint, but I'd like to

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Stephen Bannasch
Hi Charlie, Is your latest work going on in the indy_update branch? I have a simple Ruby xml processing benchmark that compares several Ruby XML libraries including rexml which is part of the Ruby standard library. My test measures the time to do the following 100 times: - open 98k XML

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Charles Oliver Nutter
On Wed, Nov 30, 2011 at 2:03 PM, Stephen Bannasch stephen.banna...@deanbrook.org wrote: Hi Charlie, Is your latest work going on in the indy_update branch? No, that's old stuff. I should wipe it out. I can explain your perf issue below, though. I have a simple Ruby xml processing benchmark

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Charles Oliver Nutter
I should add that if you're running this against a u2ish build and seeing poor performance, we need to talk. I'm not seeing that locally, and you shouldn't see it either. - Charlie On Wed, Nov 30, 2011 at 2:42 PM, Charles Oliver Nutter head...@headius.com wrote: On Wed, Nov 30, 2011 at 2:03 PM,

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Stephen Bannasch
At 2:43 PM -0600 11/30/11, Charles Oliver Nutter wrote: I should add that if you're running this against a u2ish build and seeing poor performance, we need to talk. I'm not seeing that locally, and you shouldn't see it either. Here's what I am testing with: Java 1.6.0_27 and macosx-port and mlvm

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Charles Oliver Nutter
On Wed, Nov 30, 2011 at 3:27 PM, Stephen Bannasch stephen.banna...@deanbrook.org wrote:                              user     system      total        real  rexml                  73.54   0.00  73.54 ( 73.54)  hpricot                 6.483000  0.00   6.483000 (  6.483000)  

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Charles Oliver Nutter
I may have found one big problem, using some rexml benchmarks I found. The instance-variable logic I just added seems like it might not be working right. It was supposed to be experimental and turned off, but I used the wrong flag. Invokedynamic disabled (-Xcompile.invokedynamic=false) Parsing

Re: JRuby invokedynamic updates for November

2011-11-30 Thread Stephen Bannasch
At 5:25 PM -0600 11/30/11, Charles Oliver Nutter wrote: On Wed, Nov 30, 2011 at 3:27 PM, Stephen Bannasch stephen.banna...@deanbrook.org wrote: user system totalreal rexml 73.54 0.00 73.54 ( 73.54) hpricot

JRuby invokedynamic updates for November

2011-11-29 Thread Charles Oliver Nutter
Hello friends! Just updating you on the status of JRuby + invokedynamic, for those of you following along. About halfway through this month I did another pass at getting tests passing with invokedynamic enabled, and finally turned on all uses (at the time) of indy in JRuby! Hooray! Last week, I