Skip to content

Why is the memory usage even higher than Wasmtime? #4920

@Barry-Xu-2018

Description

@Barry-Xu-2018

I’m new here and just started using WASM runtime.

I wrote a program to compare the memory usage of the same wasm file when running it with Wasmtime and WAMR. My understanding is that WAMR is designed to be lightweight, so it should, in theory, use less memory than Wasmtime. However, in my actual tests, we observed that Wasmtime consumed less memory than WAMR.

Below, I will describe my testing process. If there are any issues or improvements you can suggest, please let me know.

Hardware: Raspi 4 board
OS: ubuntu 22.04.5

For detailed compilation and execution steps, please refer to https://github.com/Barry-Xu-2018/wasm_runtime_evaluation/blob/main/README.md.

When the WASM program is running (during the 30-second wait in the WASM program), use the ps command to get the program's RSS (the actual physical memory used).
Teset result:
wasmtime (6.9M) < warm (10.5M)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions