RFR(S)JDK-8214074: Ghash optimization using AVX instructions

Eric Caspole eric.caspole at oracle.com
Mon Nov 19 22:24:54 UTC 2018


Hi everybody,
There are already JMH crypto micros in the open corpus (a maven project):

http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/fc4783360f58/src/main/java/org/openjdk/bench/javax/crypto

that should be able to measure the benefit of this webrev against the 
existing intrinsics.
Regards,
Eric


On 11/19/18 16:54, Florian Weimer wrote:
> * Smita Kamath:
> 
>> I'd like to contribute an optimization for GHASH Algorithm using AVX
>> Instructions. I have tested this optimization on SKX x86_64 platform
>> and it shows ~20-30% performance improvement for larger message sizes
>> (for example 8k).
> 
> Performance improvement against what?  The pure Java implementation?  I
> find this a bit surprising.  I would have expected a much larger
> performance improvement from the use of CLMUL instructions.
> 
> Thanks,
> Florian
> 


More information about the core-libs-dev mailing list