mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
de194ac319
Make the standalone protocol operation examples return and print concrete checksums derived from protocol state so the traced work cannot be optimized away as dead computation.
9 lines
259 B
Rust
9 lines
259 B
Rust
#[path = "support/protocol_bench_common.rs"]
|
|
mod common;
|
|
|
|
fn main() {
|
|
let iterations = common::iterations_from_args(1_000);
|
|
let checksum = common::run_encode_call(iterations);
|
|
println!("encode_call iterations={iterations} checksum={checksum}");
|
|
}
|