Skip to content

Commit

Permalink
Back to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
VianneyRuhlmann committed Sep 18, 2024
1 parent 63ccb02 commit 0704803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions trace-normalization/benches/normalization_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion trace-obfuscation/benches/benchmarks/credit_cards_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0704803

Please sign in to comment.