Testing a small http-client on Linux using no_std & embedded reqwless.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Document RNG benchmarking in README

rektide 47dca2c1 0a9c0fed

+22
+22
README.md
··· 65 65 66 66 The `xtask` `validate` subcommand group is self-documented in CLI help and can be explored as needed. 67 67 68 + ## Benchmarking 69 + 70 + To benchmark RNG backends with hyperfine: 71 + 72 + ```bash 73 + # Install hyperfine first 74 + cargo install hyperfine 75 + 76 + # Run benchmarks 77 + cargo run -p xtask -- benchmark 78 + ``` 79 + 80 + This builds three binaries with different RNG backends and compares their performance: 81 + - `rng-dummy`: ~0.3 ns (constant, no actual randomness) 82 + - `rng-dev-urandom`: ~1.2 μs (file I/O) 83 + - `rng-getrandom`: ~0.24 μs (syscall, 5x faster) 84 + 85 + Manual benchmark: 86 + ```bash 87 + cargo run --release --bin bench-rng --no-default-features --features rng-getrandom -- 10000 88 + ``` 89 + 68 90 ## Binary size comparison 69 91 70 92 Release builds are tuned for binary size in `Cargo.toml`: