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

Measure test component memory #623

Merged
merged 4 commits into from
Jun 27, 2024
Merged

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Jun 27, 2024

Resolves #612

Contains an ignored test that was used to gather measurement data. We should never run it as a test, but it may be useful for further experiments on our test components.

Plot:
image

Results:

   auction.wasm: component size: 80.77 KiB, avg delta memory: 248 KiB
   auction_registry_composed.wasm: component size: 201.93 KiB, avg delta memory: 912 KiB
   blob-store-service.wasm: component size: 61.83 KiB, avg delta memory: 320 KiB
   c-1.wasm: component size: 59.56 KiB, avg delta memory: 141.33 KiB
   caller_composed.wasm: component size: 203.62 KiB, avg delta memory: 437.33 KiB
   child_component.wasm: component size: 2.56 MiB, avg delta memory: 8.16 MiB
   clock-service.wasm: component size: 59.36 KiB, avg delta memory: 216 KiB
   clocks.wasm: component size: 91.94 KiB, avg delta memory: 352 KiB
   counters.wasm: component size: 87.62 KiB, avg delta memory: 469.33 KiB
   csharp-1.wasm: component size: 8.55 MiB, avg delta memory: 67.72 MiB
   directories.wasm: component size: 112.40 KiB, avg delta memory: 437.33 KiB
   environment-service.wasm: component size: 70.44 KiB, avg delta memory: 298.67 KiB
   failing-component.wasm: component size: 151.10 KiB, avg delta memory: 160 KiB
   file-service.wasm: component size: 126.28 KiB, avg delta memory: 204 KiB
   file-write-read-delete.wasm: component size: 102.11 KiB, avg delta memory: 298.67 KiB
   flags-service.wasm: component size: 53.27 KiB, avg delta memory: 192 KiB
   golem-rust-tests.wasm: component size: 501.41 KiB, avg delta memory: 3.24 MiB
   grain-1.wasm: component size: 97.30 KiB, avg delta memory: 229.33 KiB
   http-client-2.wasm: component size: 705.20 KiB, avg delta memory: 1.60 MiB
   http-client.wasm: component size: 107.36 KiB, avg delta memory: 352 KiB
   interruption.wasm: component size: 72.99 KiB, avg delta memory: 397.33 KiB
   java-1.wasm: component size: 204.54 KiB, avg delta memory: 584 KiB
   java-2.wasm: component size: 288.16 KiB, avg delta memory: 1.40 MiB
   js-1.wasm: component size: 9.99 MiB, avg delta memory: 45.75 MiB
   js-2.wasm: component size: 9.99 MiB, avg delta memory: 44.01 MiB
   js-3.wasm: component size: 9.99 MiB, avg delta memory: 9.97 MiB
   js-4.wasm: component size: 10.18 MiB, avg delta memory: 64.85 MiB
   js-echo.wasm: component size: 9.98 MiB, avg delta memory: 17.56 MiB
   key-value-service.wasm: component size: 69.53 KiB, avg delta memory: 344 KiB
   large-dynamic-memory.wasm: component size: 74.65 KiB, avg delta memory: 210.67 KiB
   large-initial-memory.wasm: component size: 74.50 KiB, avg delta memory: 308 KiB
   networking.wasm: component size: 73.20 KiB, avg delta memory: 274.67 KiB
   option-service.wasm: component size: 52.67 KiB, avg delta memory: 234.67 KiB
   parent_component_composed.wasm: component size: 4.48 MiB, avg delta memory: 1.49 MiB
   promise.wasm: component size: 14.12 KiB, avg delta memory: 80 KiB
   py-echo.wasm: component size: 33.20 MiB, avg delta memory: 76.76 MiB
   python-1.wasm: component size: 33.20 MiB, avg delta memory: 143.36 MiB
   read-stdin.wasm: component size: 75.98 KiB, avg delta memory: 653.33 KiB
   runtime-service.wasm: component size: 515.08 KiB, avg delta memory: 1.72 MiB
   rust-echo.wasm: component size: 13.18 KiB, avg delta memory: 154.67 KiB
   rust_component_service.wasm: component size: 1.63 MiB, avg delta memory: 341.33 KiB
   shopping-cart-resource.wasm: component size: 115.13 KiB, avg delta memory: 1.11 MiB
   shopping-cart.wasm: component size: 113.69 KiB, avg delta memory: 386.67 KiB
   stdio-cc.wasm: component size: 85.66 KiB, avg delta memory: 205.33 KiB
   swift-1.wasm: component size: 8.67 MiB, avg delta memory: 86.16 MiB
   tinygo-wasi-http.wasm: component size: 6.04 MiB, avg delta memory: 504 KiB
   tinygo-wasi.wasm: component size: 652.59 KiB, avg delta memory: 3.34 MiB
   update-test-v1.wasm: component size: 99.75 KiB, avg delta memory: 845.33 KiB
   update-test-v2.wasm: component size: 91.10 KiB, avg delta memory: 506.67 KiB
   update-test-v3.wasm: component size: 57.64 KiB, avg delta memory: 176 KiB
   update-test-v4.wasm: component size: 52.13 KiB, avg delta memory: 208 KiB
   variant-service.wasm: component size: 13.29 KiB, avg delta memory: 74.67 KiB
   write-stderr.wasm: component size: 61.44 KiB, avg delta memory: 245.33 KiB
   write-stdout.wasm: component size: 65.51 KiB, avg delta memory: 226.67 KiB
   zig-1.wasm: component size: 684.47 KiB, avg delta memory: 1.49 MiB
   zig-3.wasm: component size: 172.63 KiB, avg delta memory: 146.67 KiB

in csv format:

name,component-size,delta-memory,language
auction.wasm,82705,253952,rust
auction_registry_composed.wasm,206775,933888,rust
blob-store-service.wasm,63318,327680,rust
c-1.wasm,60985,144725,c
caller_composed.wasm,208504,447829,rust
child_component.wasm,2686998,8555178,rust
clock-service.wasm,60782,221184,rust
clocks.wasm,94144,360448,rust
counters.wasm,89722,480597,rust
csharp-1.wasm,8964429,71013717,c#
directories.wasm,115094,447829,rust
environment-service.wasm,72129,305834,rust
failing-component.wasm,154725,163840,rust
file-service.wasm,129312,208896,rust
file-write-read-delete.wasm,104561,305834,rust
flags-service.wasm,54545,196608,rust
golem-rust-tests.wasm,513439,3394218,rust
grain-1.wasm,99632,234837,grain
http-client-2.wasm,722123,1679360,rust
http-client.wasm,109937,360448,rust
interruption.wasm,74739,406869,rust
java-1.wasm,209453,598016,java
java-2.wasm,295071,1471829,java
js-1.wasm,10474053,47968256,js
js-2.wasm,10475315,46145536,js
js-3.wasm,10474830,10452992,js
js-4.wasm,10677768,67999061,js
js-echo.wasm,10468620,18415616,js
key-value-service.wasm,71197,352256,rust
large-dynamic-memory.wasm,76446,215722,rust
large-initial-memory.wasm,76283,315392,rust
networking.wasm,74953,281258,rust
option-service.wasm,53935,240298,rust
parent_component_composed.wasm,4698441,1560576,rust
promise.wasm,14462,81920,rust
py-echo.wasm,34808660,80483669,python
python-1.wasm,34810252,150328661,python
read-stdin.wasm,77807,669013,rust
runtime-service.wasm,527446,1802240,rust
rust-echo.wasm,13492,158378,rust
rust_component_service.wasm,1709471,349525,rust
shopping-cart-resource.wasm,117895,1160533,rust
shopping-cart.wasm,116419,395946,rust
stdio-cc.wasm,87717,210261,rust
swift-1.wasm,9095683,90341376,swift
tinygo-wasi-http.wasm,6329673,516096,go
tinygo-wasi.wasm,668252,3497984,go
update-test-v1.wasm,102147,865621,rust
update-test-v2.wasm,93288,518826,rust
update-test-v3.wasm,59019,180224,rust
update-test-v4.wasm,53379,212992,rust
variant-service.wasm,13612,76458,rust
write-stderr.wasm,62913,251221,rust
write-stdout.wasm,67086,232106,rust
zig-1.wasm,700898,1567402,zig
zig-3.wasm,176773,150186,zig

@vigoo vigoo enabled auto-merge (squash) June 27, 2024 11:22
@vigoo vigoo merged commit a2241e2 into main Jun 27, 2024
14 checks passed
@vigoo vigoo deleted the vigoo/measure-test-component-memory branch June 27, 2024 11:25
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.

Investigate an approximation of additional memory usage based on component size
2 participants