Skip to content

Commit

Permalink
delete duplicate test (#9866)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordworms authored Mar 30, 2024
1 parent 2159d82 commit 57c0bc6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions datafusion/functions/benches/regx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,6 @@ fn criterion_benchmark(c: &mut Criterion) {
})
});

c.bench_function("regexp_match_1000", |b| {
let mut rng = rand::thread_rng();
let data = Arc::new(data(&mut rng)) as ArrayRef;
let regex = Arc::new(regex(&mut rng)) as ArrayRef;
let flags = Arc::new(flags(&mut rng)) as ArrayRef;

b.iter(|| {
black_box(
regexp_match::<i32>(&[data.clone(), regex.clone(), flags.clone()])
.expect("regexp_match should work on valid values"),
)
})
});

c.bench_function("regexp_replace_1000", |b| {
let mut rng = rand::thread_rng();
let data = Arc::new(data(&mut rng)) as ArrayRef;
Expand Down

0 comments on commit 57c0bc6

Please sign in to comment.