summaryrefslogtreecommitdiffstats
path: root/benches/helpers/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-12-12 05:26:51 -0500
committerJesse Luehrs <doy@tozt.net>2022-12-12 05:26:51 -0500
commit0192b90ef99e937b10bc81ba20497467409869e2 (patch)
treeb04feec84b8c7708bfdb5ba89883771e64d96b05 /benches/helpers/mod.rs
parent43d0b602061b8cafde559d3bb4955b73bce16ea8 (diff)
downloadadvent-of-code-0192b90ef99e937b10bc81ba20497467409869e2.tar.gz
advent-of-code-0192b90ef99e937b10bc81ba20497467409869e2.zip
add combined benchmark
Diffstat (limited to 'benches/helpers/mod.rs')
-rw-r--r--benches/helpers/mod.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/benches/helpers/mod.rs b/benches/helpers/mod.rs
index 7303ebf..aec8690 100644
--- a/benches/helpers/mod.rs
+++ b/benches/helpers/mod.rs
@@ -70,3 +70,18 @@ macro_rules! day {
}
};
}
+
+macro_rules! day_combined {
+ ($year:expr, $day:expr, $mod:ident) => {{
+ $mod::part1(
+ $mod::parse(advent_of_code::parse::data($year, $day).unwrap())
+ .unwrap(),
+ )
+ .unwrap();
+ $mod::part2(
+ $mod::parse(advent_of_code::parse::data($year, $day).unwrap())
+ .unwrap(),
+ )
+ .unwrap();
+ }};
+}