Re: MethodHandle.invoke* performance

2013-04-03 Thread Remi Forax
On 04/03/2013 07:00 PM, Julien Ponge wrote: > > Remi, > > > Did you publish Dalvik changes somewhere? (or plan to?) The official (visible) repository is here https://bitbucket.org/jpilliet/android-292 but it only contains the patches to compile android with 1.7, the rest of the patches will be

Re: MethodHandle.invoke* performance

2013-04-03 Thread Julien Ponge
Remi,  Did you publish Dalvik changes somewhere? (or plan to?) Cheers On Wed, Apr 3, 2013 at 6:32 PM, Remi Forax wrote: > On 04/03/2013 06:12 PM, Cédric Champeau wrote: >> Le 03/04/2013 17:50, Remi Forax a écrit : >>> Sorry to be rude, but it's still a micro-benchmark ... >> First of all, ye

Re: MethodHandle.invoke* performance

2013-04-03 Thread Julien Ponge
Hi Cedric, You could make the numbers more meaningful if you extracted 1 method per test, repeated those several times to  favor JIT warming, and discard a few cold runs.  It won't change it dramatically, but at least it will have less deviation and HotSpot will have had a chance to optimize

Re: MethodHandle.invoke* performance

2013-04-03 Thread Remi Forax
On 04/03/2013 06:12 PM, Cédric Champeau wrote: > Le 03/04/2013 17:50, Remi Forax a écrit : >> Sorry to be rude, but it's still a micro-benchmark ... > First of all, yes, it is :) And as the classical fibonacci benchmark, > it's useless but relevant for understanding how things work :) >> for invoke

Re: MethodHandle.invoke* performance

2013-04-03 Thread Cédric Champeau
Le 03/04/2013 17:50, Remi Forax a écrit : > Sorry to be rude, but it's still a micro-benchmark ... First of all, yes, it is :) And as the classical fibonacci benchmark, it's useless but relevant for understanding how things work :) > for invokedynamic, it's not in theory, if your method handle is

Re: MethodHandle.invoke* performance

2013-04-03 Thread Noctarius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 03.04.2013 17:03, schrieb Cédric Champeau: > Hi guys, > Hey Cédric > First of all, sorry if my question looks stupid, but I have > difficulties explaining what I see. I made a small benchmark > for various MethodHandle.invoke* combinations. Of c

Re: MethodHandle.invoke* performance

2013-04-03 Thread Remi Forax
On 04/03/2013 05:03 PM, Cédric Champeau wrote: > Hi guys, Hi Cedric, > > First of all, sorry if my question looks stupid, but I have > difficulties explaining what I see. I made a small benchmark for > various MethodHandle.invoke* combinations. Of course, micro-benchmarks > are evil, but in th

MethodHandle.invoke* performance

2013-04-03 Thread Cédric Champeau
Hi guys, First of all, sorry if my question looks stupid, but I have difficulties explaining what I see. I made a small benchmark for various MethodHandle.invoke* combinations. Of course, micro-benchmarks are evil, but in that case, I find the figures quite interesting. Note that I'm not usin