Skip to main content

for_each_event_store_benchmark

Macro for_each_event_store_benchmark 

macro_rules! for_each_event_store_benchmark {
    ($($callback:tt)+) => { ... };
}
Available on crate feature bench only.
Expand description

Hands the complete benchmark scenario set to $callback.

This family’s single enumeration, beside the scenarios it names. It is not for_each_event_store_rule! and it deliberately shares nothing with it: a benchmark is not a conformance rule (CF-34), so the rule-name list this crate publishes is byte-for-byte what it was before this module existed.

§Examples

macro_rules! scenario_names {
    ($($name:ident),* $(,)?) => { [ $( stringify!($name) ),* ] };
}

let names = happenstance_testkit::for_each_event_store_benchmark!(scenario_names);
assert!(names.contains(&"append_throughput"));
assert_eq!(names.len(), 3);