A voting simulator based on Ka-Ping Yee's blog post about election methods.
You can try the live version on my blog: Interactive Voting System Simulator
./dev.shcargo test --releaseFirst, build with
cargo benchNote the name of the target (Running target/release/deps/vote-0f74bdcec4246b04), and run in under perf:
sudo perf record --call-graph=dwarf \
target/release/deps/vote-0f74bdcec4246b04 --bench --profile-time 10Then view the report with:
sudo perf report --hierarchy -M intel
You can navigate with the cursor keys and enter to move into a function, and press a to get an annotated disassembly interleaved with source code of the selected function.
For more details, see the Rust SIMD Performance Guide.