Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213264

[Graal] 95% regression to C2 on AESGCMBench.decrypt AES/GCM/NoPadding

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b25

      Description

       The open corpus of JMH micros is a maven project here: http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks

      It contains various crypto micros. AESGCMBench.decrypt AES/GCM/NoPadding shows a case with an intrinsic for C2 where Graal does not yet have one and uses the jitted version, so one test system the score is:
      C2:
      Benchmark (algorithm) (dataSize) (keyLength) (provider) Mode Cnt Score Error Units
      AESGCMBench.decrypt AES/GCM/NoPadding 1024 128 thrpt 8 350500.214 ± 23761.865 ops/s
      Graal:
      Benchmark (algorithm) (dataSize) (keyLength) (provider) Mode Cnt Score Error Units
      AESGCMBench.decrypt AES/GCM/NoPadding 1024 128 thrpt 8 23644.262 ± 13400.185 ops/s

      You can see the difference by using JMH linux perfasm with hsdis, I will attach profiles later.

        Attachments

          Activity

            People

            Assignee:
            jphalimi Jean-Philippe Halimi
            Reporter:
            ecaspole Eric Caspole
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: