Skip to content

Commit

Permalink
Set engine mode to “latency”
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Mar 25, 2021
1 parent d5613b9 commit a0f1de3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mx.trufflesqueak/mx_trufflesqueak.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@
PACKAGE_NAME = 'de.hpi.swa.trufflesqueak'
BASE_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
BASE_VM_ARGS = [
# RUNTIME
'-Xss64M', # Increase stack size (`-XX:ThreadStackSize=64M` not working)
]
BASE_VM_ARGS_TESTING = [
# RUNTIME
# Tweak Runtime
'-Xss64M', # Increase stack size (`-XX:ThreadStackSize=64M` not working)

# GARBAGE COLLECTOR (optimized for GitHub Actions)
# Tweak GraalVM Engine
'-Dpolyglot.engine.Mode=latency',
]
BASE_VM_ARGS_TESTING = BASE_VM_ARGS[:]
BASE_VM_ARGS_TESTING.extend([
# Tweak GC for GitHub Actions
'-Xms4G', # Initial heap size
'-XX:MetaspaceSize=32M', # Initial size of Metaspaces
]
])

IS_CI_BUILD = 'GITHUB_ACTIONS' in os.environ

Expand Down

3 comments on commit a0f1de3

@TruffleSqueak-Bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performance Report (a0f1de3)

Benchmarks ran on graalvm-ce-java11-21.0.0.2.

Steady (after 50 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 908 951 918.07 915 918.02 183614 3.06
DeltaBlue 936 1235 1154.87 1173 1153.38 230974 3.85
Havlak 3723 3848 3779.38 3779 3779.31 755876 12.6
Json 1965 2032 1982.85 1981 1982.81 396569 6.61
List 582 619 587.5 583 587.46 117501 1.96
Mandelbrot 149 208 152.41 150 152.19 30483 0.51
NBody 984 1046 1001.85 999 1001.78 200370 3.34
Permute 462 504 469.83 468 469.75 93967 1.5699999999999998
Queens 467 511 472.61 468 472.54 94522 1.58
Richards 2609 2691 2633.84 2632.5 2633.79 526768 8.78
Sieve 231 282 235.1 232 234.91 47021 0.78
Storage 418 467 427.27 425 427.15 85454 1.42
Towers 906 950 916.17 913 916.12 183234 3.05
14340 15344 14731.75 14718.5 14729.21 2946353 49.11

a0f1de3-2-steady.svg

Warmup (first 50 iterations)

a0f1de3-3-warmup.svg

@fniephaus
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above report is with --engine.Mode=latency. Continue to benchmark with --engine.Mode=default... Trace logs will now record how TruffleSqueak was invoked.

@TruffleSqueak-Bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performance Report (a0f1de3)

Benchmarks ran on graalvm-ce-java11-21.0.0.2.

Steady (after 50 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 174 214 175.95 175 175.88 35190 0.59
DeltaBlue 254 373 317.35 315 317.15 63469 1.06
Havlak 1452 1567 1515.45 1527 1515.22 303089 5.05
Json 578 614 585.59 584 585.56 117118 1.95
List 878 917 884.87 883 884.85 176974 2.95
Mandelbrot 143 169 145.84 144 145.74 29168 0.49
NBody 271 319 275.89 272 275.76 55178 0.92
Permute 219 268 222 220 221.94 44399 0.74
Queens 242 300 247.5 243 247.3 49500 0.83
Richards 938 998 954.79 957 954.69 190958 3.18
Sieve 189 229 191.33 190 191.26 38266 0.64
Storage 295 338 300.71 297 300.6 60141 1
Towers 364 406 368.68 366 368.62 73735 1.23
5997 6712 6185.93 6173 6184.57 1237185 20.62

a0f1de3-2-steady.svg

Warmup (first 50 iterations)

a0f1de3-3-warmup.svg

Please sign in to comment.