mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Harden strace benchmark binaries
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.
This commit is contained in:
@@ -3,6 +3,6 @@ mod common;
|
||||
|
||||
fn main() {
|
||||
let iterations = common::iterations_from_args(1_000);
|
||||
common::run_hook_data_receive(iterations);
|
||||
println!("hook_data_receive iterations={iterations}");
|
||||
let checksum = common::run_hook_data_receive(iterations);
|
||||
println!("hook_data_receive iterations={iterations} checksum={checksum}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user