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

Are there performance differences when optimizing different jdk21.0.2?

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      ADDITIONAL SYSTEM INFORMATION :
      The jdk 21.0.2 version I am using is:
      "
      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)
      "
      jdk 8u352:"
      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)"

      hotspot-jdk-11.0.15:
      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)

      jdk 11.0.22:"
      java version "11.0.22" 2024-01-16 LTS
      Java(TM) SE Runtime Environment 18.9 (build 11.0.22+9-LTS-219)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.22+9-LTS-219, mixed mode)
      "

      A DESCRIPTION OF THE PROBLEM :
      Are there significant performance differences between different JDKs when handling large amounts of calculations?
      When I execute this code using jdk-21.0.2 version, its time is 11.726s. When I use "-server" the time drops to 4.897 seconds. Does this process result in optimizations that should be performed but are not?
      in addition,
      When I execute this code using jdk-11.0.15, the time is 24.591s, and when using "-server" the time is still 23.912s
      When I execute the code directly using version 11.0.22, the time to execute the code is 1.883s.
      When I use the 8u352 version, the time taken is 2.509s.
        So I would like to ask, is it the difference in processing performed during optimization that causes such a performance difference?Are there significant performance differences between different JDKs when handling large amounts of calculations?
      When I execute this code using jdk-21.0.2 version, its time is 11.726s. When I use "-server" the time drops to 4.897 seconds. Does this process result in optimizations that should be performed but are not?
      in addition,
      When I execute this code using jdk-11.0.15, the time is 24.591s, and when using "-server" the time is still 23.912s
      When I execute the code directly using version 11.0.22, the time to execute the code is 1.883s.
      When I use the 8u352 version, the time taken is 2.509s.
        So I would like to ask, is it the difference in processing performed during optimization that causes such a performance difference?

      ACTUAL -
      time /root/jvm_debug/openjdk/hotspot-jdk-21.0.2/build/linux-x86_64-server-fastdebug/jdk/bin/java C
      -7747984766
      -7747984766
      -7749180770

      real 0m11.726s
      user 0m17.684s
      sys 0m0.563s

      time /root/jvm_debug/openjdk/hotspot-jdk-21.0.2/build/linux-x86_64-server-fastdebug/jdk/bin/java -server C
      -7747984766
      -7747984766
      -7749180770

      real 0m4.897s
      user 0m13.927s
      sys 0m0.184s

            rsurianaraya Rajagopal Surianarayanan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: