Skip to content

Commit 8dda792

Browse files
committed
chore: remove old benchmarks
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent 613638a commit 8dda792

1 file changed

Lines changed: 0 additions & 76 deletions

File tree

encodings/fastlanes/benches/compute_between.rs

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -173,44 +173,6 @@ mod bitpack {
173173
use crate::BENCH_ARGS;
174174
use crate::generate_bit_pack_primitive_array;
175175

176-
#[divan::bench(
177-
types = [i16, i32, i64],
178-
args = BENCH_ARGS,
179-
)]
180-
fn old_bp_prim_test_between<T>(bencher: Bencher, len: usize)
181-
where
182-
T: NumCast + NativePType,
183-
vortex_array::scalar::Scalar: From<T>,
184-
{
185-
let min = T::from_usize(5561).vortex_expect("");
186-
let max = T::from_usize(6032).vortex_expect("");
187-
let mut rng = StdRng::seed_from_u64(0);
188-
let arr = generate_bit_pack_primitive_array::<T>(&mut rng, len);
189-
190-
bencher
191-
.with_inputs(|| (&arr, LEGACY_SESSION.create_execution_ctx()))
192-
.bench_refs(|(arr, ctx)| {
193-
let gte = arr
194-
.clone()
195-
.binary(
196-
ConstantArray::new(min, arr.len()).into_array(),
197-
Operator::Gte,
198-
)
199-
.vortex_expect("");
200-
let lt = arr
201-
.clone()
202-
.binary(
203-
ConstantArray::new(max, arr.len()).into_array(),
204-
Operator::Lt,
205-
)
206-
.vortex_expect("");
207-
gte.binary(lt, Operator::And)
208-
.unwrap()
209-
.execute::<RecursiveCanonical>(ctx)
210-
.unwrap()
211-
})
212-
}
213-
214176
#[divan::bench(
215177
types = [i16, i32, i64],
216178
args = BENCH_ARGS,
@@ -264,44 +226,6 @@ mod alp {
264226
use crate::BENCH_ARGS;
265227
use crate::generate_alp_bit_pack_primitive_array;
266228

267-
#[divan::bench(
268-
types = [f32, f64],
269-
args = BENCH_ARGS,
270-
)]
271-
fn old_alp_prim_test_between<T>(bencher: Bencher, len: usize)
272-
where
273-
T: NumCast + NativePType,
274-
vortex_array::scalar::Scalar: From<T>,
275-
{
276-
let min = T::from_usize(5561).vortex_expect("");
277-
let max = T::from_usize(6032).vortex_expect("");
278-
let mut rng = StdRng::seed_from_u64(0);
279-
let arr = generate_alp_bit_pack_primitive_array::<T>(&mut rng, len);
280-
281-
bencher
282-
.with_inputs(|| (&arr, LEGACY_SESSION.create_execution_ctx()))
283-
.bench_refs(|(arr, ctx)| {
284-
let gte = arr
285-
.clone()
286-
.binary(
287-
ConstantArray::new(min, arr.len()).into_array(),
288-
Operator::Gte,
289-
)
290-
.vortex_expect("");
291-
let lt = arr
292-
.clone()
293-
.binary(
294-
ConstantArray::new(max, arr.len()).into_array(),
295-
Operator::Lt,
296-
)
297-
.vortex_expect("");
298-
gte.binary(lt, Operator::And)
299-
.unwrap()
300-
.execute::<RecursiveCanonical>(ctx)
301-
.unwrap()
302-
})
303-
}
304-
305229
#[divan::bench(
306230
types = [f32, f64],
307231
args = BENCH_ARGS,

0 commit comments

Comments
 (0)