RFR(S): 8209544: AES encrypt performance regression in jdk11b11

Dmitry Chuyko dmitry.chuyko at bell-sw.com
Wed Sep 5 15:50:34 UTC 2018


I made few runs on ThunderX2 (aarch64). It is funny but I see almost 
reverse difference in small.AESBench.encrypt: ~4% regression for both 
-XX:-UseSwitchProfiling and patched version against current code. No 
difference for full.AESBench.encrypt.

Stub code is the same and profiles differ slightly:

Mainline
  53.91%        runtime stub  StubRoutines::aescrypt_encryptBlock (128 
bytes)
  29.76%        runtime stub  StubRoutines::aescrypt_encryptBlock (40 
bytes)
   7.64%         c2, level 4 
com.sun.crypto.provider.CipherCore::doFinal, version 868 (356 bytes)

-XX:+UnlockExperimentalVMOptions -XX:-UseSwitchProfiling
  57.08%        runtime stub  StubRoutines::aescrypt_encryptBlock (132 
bytes)
  26.95%        runtime stub  StubRoutines::aescrypt_encryptBlock (40 
bytes)
   7.85%         c2, level 4 
com.sun.crypto.provider.CipherCore::doFinal, version 860 (384 bytes)

Patched
  58.15%        runtime stub  StubRoutines::aescrypt_encryptBlock (132 
bytes)
  26.44%        runtime stub  StubRoutines::aescrypt_encryptBlock (40 
bytes)
   6.67%         c2, level 4 
com.sun.crypto.provider.CipherCore::doFinal, version 866 (128 bytes)

-Dmitry

On 09/05/2018 11:05 AM, Roland Westrelin wrote:
> Thanks for the review. Anyone else?
>
> Roland.



More information about the hotspot-compiler-dev mailing list