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

Can the performance of openjdk11 and openjdk21javac be improved?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • 11, 17, 21, 22
    • tools
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "21.0.2-internal" 2024-01-16
      OpenJDK Runtime Environment (fastdebug build 21.0.2-internal-adhoc.root.jdk-21.0.213)
      OpenJDK 64-Bit Server VM (fastdebug build 21.0.2-internal-adhoc.root.jdk-21.0.213, mixed mode)



      openjdk version "11.0.15-internal" 2022-04-19
      OpenJDK Runtime Environment (fastdebug build 11.0.15-internal+0-adhoc.root.jdk-11.0.1510)
      OpenJDK 64-Bit Server VM (fastdebug build 11.0.15-internal+0-adhoc.root.jdk-11.0.1510, mixed mode)



      openjdk version "1.8.0_352-internal-fastdebug"
      OpenJDK Runtime Environment (build 1.8.0_352-internal-fastdebug-root_2024_02_26_12_47-b00)
      OpenJDK 64-Bit Server VM (build 25.352-b00-fastdebug, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      When I compile java files using javac command of jdk21 and jdk11, the speed is significantly lower than jdk8.jdk8 can always execute results quickly, jdk11 and jdk21 are 7 times slower than jdk8.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      time ./hotspot-jdk8u352/build/linux-x86_64-normal-server-fastdebug/jdk/bin/javac Test.java

      real 0m0.558s
      user 0m1.698s
      sys 0m0.148s

      time ./hotspot-jdk-11.0.15/build/linux-x86_64-normal-server-fastdebug/jdk/bin/javac Test.java

      real 0m35.654s
      user 2m0.820s
      sys 0m1.680s

      time ./hotspot-jdk-21.0.2/build/linux-x86_64-server-fastdebug/jdk/bin/javac Test5.java

      real 0m34.547s
      user 1m52.598s
      sys 0m0.701s


      FREQUENCY : often


            jlahoda Jan Lahoda
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: