Skip to content

Commit 644e00d

Browse files
committed
Initialize benchmark sessions after rebase
Signed-off-by: Nicholas Gates <nick@nickgates.com>
1 parent 6fdb932 commit 644e00d

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

encodings/runend/benches/run_end_take.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use vortex_array::IntoArray;
1515
use vortex_array::RecursiveCanonical;
1616
use vortex_array::VortexSessionExecute;
1717
use vortex_array::arrays::PrimitiveArray;
18-
use vortex_array::session::ArraySession;
1918
use vortex_array::validity::Validity;
2019
use vortex_buffer::Buffer;
2120
use vortex_runend::RunEnd;
@@ -25,8 +24,11 @@ fn main() {
2524
divan::main();
2625
}
2726

28-
static SESSION: LazyLock<VortexSession> =
29-
LazyLock::new(|| VortexSession::empty().with::<ArraySession>());
27+
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
28+
let session = vortex_array::array_session();
29+
vortex_runend::initialize(&session);
30+
session
31+
});
3032

3133
#[derive(Clone, Copy)]
3234
enum IndexPattern {

vortex/benches/common_encoding_tree_throughput.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use divan::counter::BytesCount;
1313
use mimalloc::MiMalloc;
1414
use rand::RngExt;
1515
use rand::SeedableRng;
16+
use vortex::VortexSessionDefault;
1617
use vortex::array::ArrayRef;
1718
use vortex::array::Canonical;
1819
use vortex::array::IntoArray;
@@ -52,7 +53,7 @@ fn main() {
5253
divan::main();
5354
}
5455

55-
static SESSION: LazyLock<VortexSession> = LazyLock::new(vortex_array::array_session);
56+
static SESSION: LazyLock<VortexSession> = LazyLock::new(VortexSession::default);
5657

5758
const NUM_VALUES: u64 = 100_000;
5859

vortex/benches/single_encoding_throughput.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use rand::RngExt;
1414
use rand::SeedableRng;
1515
use rand::prelude::IndexedRandom;
1616
use rand::rngs::StdRng;
17+
use vortex::VortexSessionDefault;
1718
use vortex::array::Canonical;
1819
use vortex::array::ExecutionCtx;
1920
use vortex::array::IntoArray;
@@ -45,7 +46,7 @@ use vortex_session::VortexSession;
4546
#[global_allocator]
4647
static GLOBAL: MiMalloc = MiMalloc;
4748

48-
static SESSION: LazyLock<VortexSession> = LazyLock::new(vortex_array::array_session);
49+
static SESSION: LazyLock<VortexSession> = LazyLock::new(VortexSession::default);
4950

5051
fn main() {
5152
divan::main();

0 commit comments

Comments
 (0)