Skip to content

Commit

Permalink
update: modified steps of generating report for msm benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
FoodChain1028 committed Feb 4, 2024
1 parent 4ddc617 commit aa8cd40
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions mopro-ffi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ To test bindings in release mode without warning:

## Generate MSM benchmark report in swift on laptop

* Enable `gpu-benchmarks` feature as default in `Cargo.toml`
* Uncomment the 3rd line in `mopro-ffi/tests/test_generated_bindings.rs` to enable report generation
* run `cargo test --test test_generated_bindings --features gpu-benchmarks --release`
* The report would be generated at `mopro-core/benchmarks/gpu_explorations/msm_bench_swift_laptop.csv`
1. Comment `default=[]` and uncomment `default=["gpu-benchmarks"]` to enable `gpu-benchmarks` feature flag
2. run `RUSTFLAGS="-C opt-level=3" cargo test --test test_generated_bindings --release`
3. The report will be generated at `mopro-core/benchmarks/gpu_explorations/msm_bench_swift_laptop.csv`

![msm benchmarks of time (rust vs. swift)](https://hackmd.io/_uploads/BkxRMMtca.png)

The above report was conducted on an M1 Pro MacBook Pro.

For more information, read this report we have completed, which compares the time performance of MSM running in rust and swift.

0 comments on commit aa8cd40

Please sign in to comment.