Re: Reflection vs MethodHandle performance in Oracle JDK 7u7

2012-10-15 Thread David Chase
I am new to Openjdk and mlvm, but I have decades of experience in benchmark cheating and hackery. (No, that is not what I am bringing to OpenJDK.) I went to look at Caliper, and in the tutorial, I saw this: return dummy; // framework ignores this, but it has served its purpose! This is no

Re: Reflection vs MethodHandle performance in Oracle JDK 7u7

2012-10-15 Thread John Rose
On Oct 15, 2012, at 11:56 AM, Ashwin Jayaprakash wrote: > Remi, you were right. Disabling tiered compilation sped things up a bit. But, > everything except MethodHandles is slower in JDK 8 than in JDK 7u7. > Especially static and virtual calls (!!) Two hypotheses come to mind: * static and virt

Re: Reflection vs MethodHandle performance in Oracle JDK 7u7

2012-10-15 Thread Ashwin Jayaprakash
Remi, you were right. Disabling tiered compilation sped things up a bit. But, everything except MethodHandles is slower in JDK 8 than in JDK 7u7. Especially static and virtual calls (!!) *JDK 7u7* vs *JDK 8-ea-bin-b59-windows-x64-04_oct_2012* on Win 7, 64bit, 1 cpu x 2 core x 4 HT, i7 920 laptop:

Re: Reflection vs MethodHandle performance in Oracle JDK 7u7

2012-10-13 Thread Remi Forax
On 10/13/2012 04:22 AM, Ashwin Jayaprakash wrote: > I ran the same test on a slightly older laptop with both JDK 7u7 and > JDK 8-ea-bin-b59-windows-x64-04_oct_2012. Hardware is i5 M430 - 1 CPU > x 2 Cores x 2 HT running Windows 7, 64 bit. > > The results are promising in JDK 8 for MethodHandles a

Re: Reflection vs MethodHandle performance in Oracle JDK 7u7

2012-10-12 Thread Ashwin Jayaprakash
I ran the same test on a slightly older laptop with both JDK 7u7 and JDK 8-ea-bin-b59-windows-x64-04_oct_2012. Hardware is i5 M430 - 1 CPU x 2 Cores x 2 HT running Windows 7, 64 bit. The results are promising in JDK 8 for MethodHandles and strangely, Reflection and direct calls were slower than JD

Re: Reflection vs MethodHandle performance in Oracle JDK 7u7

2012-10-12 Thread Christian Thalinger
Could you rerun the test with a recent JDK 8 build? -- Chris On Oct 10, 2012, at 3:02 PM, Ashwin Jayaprakash wrote: > Hi, I was looking at the Java 7 InvokeDynamic/MethodHandle feature set and I > was curious to know how it performed compared to good old Reflection. > > I had refrained from