Skip to content

Commit

Permalink
add info about benchmark setup
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Nov 17, 2022
1 parent 1688c36 commit c0c2c9e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tpke-wasm/BENCHMARK.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Benchmarks

## Setup

Benchmarks produced on:

- Intel® Core™ i7-10875H CPU @ 2.30GHz × 16 (single-threaded),
- Version 107.0.5304.110 (Official Build) (64-bit),
- Pop!\_OS 22.04 LTS (64-bit),

## Benchmarking WASM

This time we may not use [`centurion.rs`](https://github.com/bheisler/criterion.rs/blob/version-0.4/book/src/user_guide/wasi.md#webasseblywasi-benchmarking) because `wasm32-wasi` is incompatible with `wasm_bindgen` ([1](https://github.com/rustwasm/wasm-bindgen/issues/2554), [2](https://github.com/bevyengine/bevy/discussions/5908?sort=new)). Instead, we're going to measure performance directly in the browser.
Expand Down
12 changes: 11 additions & 1 deletion tpke/BENCHMARK.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Benchmarks

## Setup

Benchmarks produced on:

- Intel® Core™ i7-10875H CPU @ 2.30GHz × 16 (single-threaded),
- Version 107.0.5304.110 (Official Build) (64-bit),
- Pop!\_OS 22.04 LTS (64-bit),

````bash

## Benchmarking WASM

Based on `centurion.rs` (docs)[https://github.com/bheisler/criterion.rs/blob/version-0.4/book/src/user_guide/wasi.md#webasseblywasi-benchmarking]
Expand All @@ -12,7 +22,7 @@ npm install -g @wasmer/cli
cargo wasi build --bench=benchmarks --release
cp `ls -t ../target/wasm32-wasi/release/deps/*.wasm | head -n 1` benchmarks.wasm
```
````
### Running
Expand Down

0 comments on commit c0c2c9e

Please sign in to comment.