JDK-8292999 : Review running times of langtools regression tests (umbrella)
  • Type: Enhancement
  • Component: tools
  • Affected Version: 20
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-08-26
  • Updated: 2024-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Unresolved
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8293000 :  
JDK-8293003 :  
JDK-8293877 :  
JDK-8294880 :  
Description
4,177 of 4,348 langtools regression tests run for less than 10 seconds on a contemporary laptop. Several dozen tests run for thirty seconds to several minutes. These longer-running tests should be examined to see if their run time can be reduced or broken into pieces to run in parallel.

25 longest running tests from one regression test run (times in milliseconds):

    ./jdk/internal/shellsupport/doc/JavadocHelperTest.jtr     154158
    ./jdk/jshell/ClassMembersTest.jtr    107729
    ./jdk/jshell/ToolBasicTest.jtr    92187
    ./tools/javac/failover/CheckAttributedTree.jtr  68424
    ./tools/javac/Paths/wcMineField.jtr    66517
    ./jdk/jshell/ToolSimpleTest.jtr    61737
    ./jdk/jshell/VariablesTest.jtr    52343
    ./tools/javac/Paths/MineField.jtr    50104
    ./tools/javac/varargs/warning/Warn5.jtr    44598
    ./tools/jdeps/MultiReleaseJar.jtr    44591
    ./tools/javac/importscope/NegativeCyclicDependencyTest.jtr    43329
    ./tools/javac/lambdaShapes/org/openjdk/tests/javac/FDTest.jtr    42733
    ./jdk/jshell/FailOverExecutionControlHangingListenTest.jtr    42135
    ./jdk/jshell/FailOverExecutionControlDyingLaunchTest.jtr    42081
    ./jdk/jshell/FailOverExecutionControlHangingLaunchTest.jtr    41896
    ./tools/javac/classfiles/attributes/annotations/RuntimeParameterAnnotationsForGenericMethodTest.jtr    40792
    ./tools/javac/cast/intersection/IntersectionTypeCastTest.jtr    39886
    ./jdk/jshell/CompletionSuggestionTest.jtr    37872
    ./tools/javac/lambda/LambdaParserTest.jtr    36975
    ./tools/javac/lambda/intersection/IntersectionTargetTypeTest.jtr    35938
    ./tools/javac/tree/SourceDocTreeScannerTest.jtr 	    34639
    ./tools/javac/records/RecordCompilationTests.jtr    33367
    ./tools/javac/tree/SourceTreeScannerTest.jtr    32679
    ./tools/jdeps/listdeps/ListModuleDeps.jtr    	    32061
    ./jdk/jshell/SimpleRegressionTest.jtr    31444


The tests were extracted using a shell command like

grep "^totalTime" `find JTwork/ -name "*.jtr"` | sed s/"JTwork\/"//g | sed s/":totalTime="/" "/g | sort --n -r -t' ' -k2 | head -n 25