diff --git a/trace-normalization/benches/normalization_utils.rs b/trace-normalization/benches/normalization_utils.rs index 101cb338f..d94aa9179 100644 --- a/trace-normalization/benches/normalization_utils.rs +++ b/trace-normalization/benches/normalization_utils.rs @@ -22,7 +22,7 @@ fn normalize_service_bench(c: &mut Criterion) { "A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000", ]; - normalize_fnmut_string(group, cases, 100000, "normalize_service", normalize_service); + normalize_fnmut_string(group, cases, 1000, "normalize_service", normalize_service); } fn normalize_name_bench(c: &mut Criterion) { @@ -32,7 +32,7 @@ fn normalize_name_bench(c: &mut Criterion) { "bad-name", "Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.", ]; - normalize_fnmut_string(group, cases, 100000, "normalize_name", normalize_name); + normalize_fnmut_string(group, cases, 1000, "normalize_name", normalize_name); } #[inline] diff --git a/trace-obfuscation/benches/benchmarks/credit_cards_bench.rs b/trace-obfuscation/benches/benchmarks/credit_cards_bench.rs index 612e6f41d..1c6b27bf9 100644 --- a/trace-obfuscation/benches/benchmarks/credit_cards_bench.rs +++ b/trace-obfuscation/benches/benchmarks/credit_cards_bench.rs @@ -20,7 +20,7 @@ fn is_card_number_no_luhn_bench(c: &mut Criterion) { fn bench_is_card_number(c: &mut Criterion, function_name: &str, validate_luhn: bool) { let mut group = c.benchmark_group("credit_card"); // Measure over a number of calls to minimize impact of OS noise - let elements = 100000; + let elements = 1000; group.throughput(Elements(elements)); // We only need to measure for a small time since the function is very fast group.warm_up_time(Duration::from_secs(1));