-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade wasmtime to v.28 (#3330)
Wasmtime release notes: https://github.com/bytecodealliance/wasmtime/releases/tag/v28.0.0 - Changed `LinearMemory` trait API, [code](bytecodealliance/wasmtime#9577) - Changed static/dynamic memory config, removed `static_memory_maximum_size` [code](bytecodealliance/wasmtime#9545) --------- Co-authored-by: Andriy Berestovskyy <[email protected]> Co-authored-by: IDX GitHub Automation <[email protected]>
- Loading branch information
1 parent
ba5e99b
commit 8054acf
Showing
20 changed files
with
3,739 additions
and
2,715 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Execution Benchmarks | ||
==================== | ||
|
||
Quick Start | ||
----------- | ||
|
||
1. To run all benchmarks and compare them to the committed baseline: | ||
|
||
```sh | ||
./rs/execution_environment/benches/run-all-benchmarks.sh | tee summary.txt | ||
``` | ||
|
||
The summary will be generated in the `summary.txt` file. | ||
|
||
2. To update the baseline: | ||
|
||
```sh | ||
cp *.min rs/execution_environment/benches/baseline | ||
git add rs/execution_environment/benches/baseline/* | ||
git commit -m "Update benches baseline" | ||
``` | ||
|
||
Adding a New Benchmark | ||
---------------------- | ||
|
||
1. Create a new benchmark and test it with `bazel run ...`. | ||
|
||
2. To integrate the new benchmark into the CI pipeline: | ||
|
||
```Starlark | ||
rust_ic_bench( | ||
name = "my_new_bench", | ||
with_test = True, | ||
[...] | ||
) | ||
``` | ||
|
||
Note, a single benchmark iteration should run in a reasonable amount of time: | ||
|
||
```sh | ||
bazel run //rs/execution_environment:my_new_bench -- --test | ||
``` | ||
|
||
3. To include the new benchmark in the comparison: | ||
|
||
Edit script: `rs/execution_environment/benches/run-all-benchmarks.sh` |
30 changes: 15 additions & 15 deletions
30
rs/execution_environment/benches/baseline/EMBEDDERS_COMPILATION.min
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
test compilation/simple ... bench: 856325 ns/iter (+/- 25738) | ||
test compilation/empty ... bench: 630420 ns/iter (+/- 41102) | ||
test compilation/many_adds ... bench: 227841128 ns/iter (+/- 8410338) | ||
test compilation/many_funcs ... bench: 647063352 ns/iter (+/- 21812709) | ||
test compilation/real_world_wasm ... bench: 763950795 ns/iter (+/- 14152869) | ||
test deserialization/simple ... bench: 38591 ns/iter (+/- 2403) | ||
test deserialization/empty ... bench: 36263 ns/iter (+/- 2421) | ||
test deserialization/many_adds ... bench: 367652 ns/iter (+/- 18746) | ||
test deserialization/many_funcs ... bench: 9611403 ns/iter (+/- 132725) | ||
test deserialization/real_world_wasm ... bench: 9634751 ns/iter (+/- 116462) | ||
test validation-instrumentation/simple ... bench: 44939 ns/iter (+/- 199) | ||
test validation-instrumentation/empty ... bench: 12826 ns/iter (+/- 20) | ||
test validation-instrumentation/many_adds ... bench: 17189632 ns/iter (+/- 118273) | ||
test validation-instrumentation/many_funcs ... bench: 130757108 ns/iter (+/- 2148530) | ||
test validation-instrumentation/real_world_wasm ... bench: 249637146 ns/iter (+/- 1794580) | ||
test compilation/simple ... bench: 829698 ns/iter (+/- 28216) | ||
test compilation/empty ... bench: 620128 ns/iter (+/- 34488) | ||
test compilation/many_adds ... bench: 212131971 ns/iter (+/- 12029294) | ||
test compilation/many_funcs ... bench: 637222024 ns/iter (+/- 24032914) | ||
test compilation/real_world_wasm ... bench: 777318340 ns/iter (+/- 17189505) | ||
test deserialization/simple ... bench: 34086 ns/iter (+/- 3837) | ||
test deserialization/empty ... bench: 32830 ns/iter (+/- 3067) | ||
test deserialization/many_adds ... bench: 270273 ns/iter (+/- 3299) | ||
test deserialization/many_funcs ... bench: 9520767 ns/iter (+/- 160008) | ||
test deserialization/real_world_wasm ... bench: 9187724 ns/iter (+/- 588787) | ||
test validation-instrumentation/simple ... bench: 45814 ns/iter (+/- 185) | ||
test validation-instrumentation/empty ... bench: 13064 ns/iter (+/- 39) | ||
test validation-instrumentation/many_adds ... bench: 17172563 ns/iter (+/- 203235) | ||
test validation-instrumentation/many_funcs ... bench: 113483470 ns/iter (+/- 4219009) | ||
test validation-instrumentation/real_world_wasm ... bench: 266833186 ns/iter (+/- 9943536) |
Oops, something went wrong.