Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Jul 19, 2024
1 parent 7653278 commit 613a72b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion relay-metrics/benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ struct NumbersGenerator {

impl NumbersGenerator {
fn new(range: Range<usize>) -> Self {
println!("{:?} {:?}", range.start, range.end);
Self {
min: range.start,
max: range.end,
Expand Down Expand Up @@ -167,6 +166,16 @@ fn bench_insert_and_flush(c: &mut Criterion) {
timestamp_shifts_generator: NumbersGenerator::new(10..50),
},
),
(
"a lot of metrics from a lot of projects with mix of backdated buckets and non",
BucketsGenerator {
percentage_backdated: 0.5,
num_buckets: 1_000_000,
metric_ids_generator: NumbersGenerator::new(1..1_000_000),
project_keys_generator: NumbersGenerator::new(1..1_000_000),
timestamp_shifts_generator: NumbersGenerator::new(10..50),
},
),
];

for (input_name, input) in &inputs {
Expand Down

0 comments on commit 613a72b

Please sign in to comment.