Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize native image #2

Closed
wants to merge 19 commits into from
Closed

Optimize native image #2

wants to merge 19 commits into from

Conversation

jessiscript
Copy link
Owner

No description provided.

Copy link

GraalVM Native Image Build Report

game-of-life generated in 1m 53s as part of the 'build' job in run #88.

Environment

Java version 21.0.2+13-LTS Vendor version Oracle GraalVM 21.0.2+13.1
Graal compiler optimization level: 1, target machine: x86-64-v3, PGO: off
C compiler gcc (linux, x86_64, 11.4.0)
Garbage collector Epsilon GC

Analysis Results

Category Types in %Compared to main Fields in %Compared to main Methods in %Compared to main
Reachable 7,792 81.353%

-42.00 (-0.536%

14,386 61.334%

-127.00 (-0.875%

44,846 56.957%

-450.00 (-0.993%

Reflection 2,353 24.567%

-8.00 (-0.339%

135 0.576%

0.00 (+0.000%

1,083 1.375%

0.00 (+0.000%

JNI 58 0.606%

0.00 (+0.000%

58 0.247%

0.00 (+0.000%

52 0.066%

0.00 (+0.000%

Loaded 9,578 100.000%

-40.00 (-0.416%

23,455 100.000%

-146.00 (-0.619%

78,737 100.000%

-297.00 (-0.376%

Image Details

Category Size in %Compared to main Details
Code area 12.84MB 42.841% 🟢 -11.37MB (-46.975%) 🟢 28,588 compilation units
Image heap 15.67MB 52.289% 🟢 -2.16MB (-12.114%) 🟢 235,092 objects, 780.77KB for 102 resources
Other data 1.46MB 4.870% 🟢 -132.26KB (-8.130%) 🟢
Total 29.97MB 100.000% 🟢 -13.66MB (-31.314%) 🟢

Resource Usage

Category ResourcesCompared to main
Garbage collection 14.80s (12.995% of total time) in 304 GCs

-0.25s (-1.661%

Peak RSS 2.28GB (14.619% of 15.61GB system memory) 🟢 -432.02MB (-15.606%) 🟢
CPU load 3.688 (92.192% of 4 CPU cores) 🟢 -0.10 (-2.514%) 🟢

Report generated by setup-graalvm.

Copy link

GraalVM Native Image PR comparison

Analysis Results

gantt
    title Native Image Analysis Results 
    todayMarker off
    dateFormat  X
    axisFormat %

    section Types
    optimize_native_image 7792 (Reachable): active, 0, 7792
    main 7834 (Reachable): 0, 7834
    optimize_native_image 2353 (Reflection): active, 0, 2353
    main 2361 (Reflection): 0, 2361
    optimize_native_image 58 (JNI): active, 0, 58
    main 58 (JNI): 0, 58
    optimize_native_image 9578 (Total Loaded): active, 0, 9578
    main 9618 (Total Loaded): 0, 9618
    
    section Fields
    optimize_native_image 14386 (Reachable): active, 0, 14386
    main 14513 (Reachable): 0, 14513
    optimize_native_image 135 (Reflection): active, 0, 135
    main 135 (Reflection): 0, 135
    optimize_native_image 58 (JNI): active, 0, 58
    main 58 (JNI): 0, 58
    optimize_native_image 23455 (Total Loaded): active, 0, 23455
    main 23601 (Total Loaded): 0, 23601
    
    section Methods
    optimize_native_image 44846 (Reachable): active, 0, 44846
    main 45296 (Reachable): 0, 45296
    optimize_native_image 1083 (Reflection): active, 0, 1083
    main 1083 (Reflection): 0, 1083
    optimize_native_image 52 (JNI): active, 0, 52
    main 52 (JNI): 0, 52
    optimize_native_image 78737 (Total Loaded): active, 0, 78737
    main 79034 (Total Loaded): 0, 79034
Loading

Resource Usage

gantt
    title Native Image Resource Usage
    todayMarker off
    dateFormat  X
    axisFormat %

    section Garbage Collection
    optimize_native_image (14.797s): active, 0, 100
    main (15.047s): 0, 102
    
    section Peak RSS
    optimize_native_image (2.28GB): active, 0, 100
    main (2.70GB): 0, 118
    
    section CPU Load
    optimize_native_image (3.69B): active, 0, 100
    main (3.78B): 0, 103
Loading

Report generated by setup-graalvm.

Copy link

GraalVM Native Image Build Report

game-of-life generated in 1m 53s as part of the 'build' job in run #90.

Environment

Java version 21.0.2+13-LTS Vendor version Oracle GraalVM 21.0.2+13.1
Graal compiler optimization level: 1, target machine: x86-64-v3, PGO: off
C compiler gcc (linux, x86_64, 11.4.0)
Garbage collector Epsilon GC

Analysis Results

Category Types in %Compared to main Fields in %Compared to main Methods in %Compared to main
Reachable 7,792 81.353%

-42.00 (-0.536%

14,386 60.803%

-127.00 (-0.875%

44,846 56.957%

-450.00 (-0.993%

Reflection 2,353 24.567%

-8.00 (-0.339%

135 0.571%

0.00 (+0.000%

1,083 1.375%

0.00 (+0.000%

JNI 58 0.606%

0.00 (+0.000%

58 0.245%

0.00 (+0.000%

52 0.066%

0.00 (+0.000%

Loaded 9,578 100.000%

-40.00 (-0.416%

23,660 100.000%

59.00 (+0.250%

78,737 100.000%

-297.00 (-0.376%

Image Details

Category Size in %Compared to main Details
Code area 12.84MB 42.835% 🟢 -11.37MB (-46.975%) 🟢 28,588 compilation units
Image heap 15.68MB 52.296% 🟢 -2.16MB (-12.092%) 🟢 235,147 objects, 780.77KB for 102 resources
Other data 1.46MB 4.869% 🟢 -132.26KB (-8.130%) 🟢
Total 29.98MB 100.000% 🟢 -13.66MB (-31.305%) 🟢

Resource Usage

Category ResourcesCompared to main
Garbage collection 13.92s (12.276% of total time) in 233 GCs 🟢 -1.12s (-7.463%) 🟢
Peak RSS 2.81GB (17.993% of 15.61GB system memory)

107.22MB (+3.873%

CPU load 3.664 (91.594% of 4 CPU cores) 🟢 -0.12 (-3.147%) 🟢

Report generated by setup-graalvm.

Copy link

GraalVM Native Image PR comparison

Analysis Results

gantt
    title Native Image Analysis Results 
    todayMarker off
    dateFormat  X
    axisFormat %

    section Types
    optimize_native_image 7792 (Reachable): active, 0, 7792
    main 7834 (Reachable): 0, 7834
    optimize_native_image 2353 (Reflection): active, 0, 2353
    main 2361 (Reflection): 0, 2361
    optimize_native_image 58 (JNI): active, 0, 58
    main 58 (JNI): 0, 58
    optimize_native_image 9578 (Total Loaded): active, 0, 9578
    main 9618 (Total Loaded): 0, 9618
    
    section Fields
    optimize_native_image 14386 (Reachable): active, 0, 14386
    main 14513 (Reachable): 0, 14513
    optimize_native_image 135 (Reflection): active, 0, 135
    main 135 (Reflection): 0, 135
    optimize_native_image 58 (JNI): active, 0, 58
    main 58 (JNI): 0, 58
    optimize_native_image 23660 (Total Loaded): active, 0, 23660
    main 23601 (Total Loaded): 0, 23601
    
    section Methods
    optimize_native_image 44846 (Reachable): active, 0, 44846
    main 45296 (Reachable): 0, 45296
    optimize_native_image 1083 (Reflection): active, 0, 1083
    main 1083 (Reflection): 0, 1083
    optimize_native_image 52 (JNI): active, 0, 52
    main 52 (JNI): 0, 52
    optimize_native_image 78737 (Total Loaded): active, 0, 78737
    main 79034 (Total Loaded): 0, 79034
Loading

Image Details

gantt
    title Native Image Size Details 
    todayMarker off
    dateFormat  X
    axisFormat %

    section Code area
    optimize_native_image (12.84MB): active, 0, 13463776
    main (24.21MB): 0, 25391136
    
    section Image heap
    optimize_native_image (15.68MB): active, 0, 16437248
    main (17.83MB): 0, 18698240
    
    section Other data
    optimize_native_image (1.46MB): active, 0, 1530376
    main (1.59MB): 0, 1665808

    section Total
    optimize_native_image (29.98MB)   : active, 0, 31431400
    main (43.64MB)   : 0, 45755184
Loading

Resource Usage

gantt
    title Native Image Resource Usage
    todayMarker off
    dateFormat  X
    axisFormat %

    section Garbage Collection
    optimize_native_image (13.924s): active, 0, 100
    main (15.047s): 0, 108
    
    section Peak RSS
    optimize_native_image (2.81GB): active, 0, 100
    main (2.70GB): 0, 96
    
    section CPU Load
    optimize_native_image (3.66B): active, 0, 100
    main (3.78B): 0, 103
Loading

Report generated by setup-graalvm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant