fitzgen / measure-wasm-dedupe-wins

Measure the available wins from deduplicating various parts of WebAssembly binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

measure-wasm-dedupe-wins

This is a tool to measure the amount of available wins from adding various kinds of deduplication to Wasmtime's caching and/or in-memory representations for a given corpus of Wasm binaries.

Usage

Give the tool a directory tree and it will walk it to find all the Wasm binaries inside:

$ cargo run --release -- path/to/corpus/of/Wasm/binaries

And then it will output information about how much duplication exists between those Wasm binaries:

Total size:                   9706508 bytes
--------------------------------------------------------------------------------
Duplicated data segments:       79230 bytes (0.82%)
Duplicated elem segments:         368 bytes (0.00%)
Duplicated code bodies:        100858 bytes (1.04%)
Duplicated custom sections:   3404222 bytes (35.07%)
--------------------------------------------------------------------------------
Total duplicated data:        3584678 bytes (36.93%)

About

Measure the available wins from deduplicating various parts of WebAssembly binaries


Languages

Language:Rust 100.0%