From 5f401bbbe83c792dea389c4002d0a592ca1b1e36 Mon Sep 17 00:00:00 2001 From: Philippe-Cholet <44676486+Philippe-Cholet@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:33:30 +0200 Subject: [PATCH] Benchmark specializations: minor doc/usage changes --- benches/specializations.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/benches/specializations.rs b/benches/specializations.rs index 7e39fc1c8..22cf426d4 100644 --- a/benches/specializations.rs +++ b/benches/specializations.rs @@ -12,7 +12,7 @@ const NTH_INPUTS: &[usize] = &[0, 1, 2, 4, 8]; /// Each created group has functions with the following ids: /// /// - `next`, `size_hint`, `count`, `last`, `nth`, `collect`, `fold` -/// - and when marked as `DoubleEndedIterator`: `next_back`, `rfold` +/// - and when marked as `DoubleEndedIterator`: `next_back`, `nth_back`, `rfold` /// - and when marked as `ExactSizeIterator`: `len` /// /// Note that this macro can be called only once. @@ -135,8 +135,11 @@ macro_rules! bench_specializations { }; } -// Example: To bench only `ZipLongest::fold`, you can do +// Usage examples: +// - For `ZipLongest::fold` only: // cargo bench --bench specializations zip_longest/fold +// - For `.combinations(k).nth(8)`: +// cargo bench --bench specializations combinations./nth/8 bench_specializations! { interleave { {