diff --git a/data_store/benches/data_benchmark.rs b/data_store/benches/data_benchmark.rs index 8ec451199cc1..fdbe4d523304 100644 --- a/data_store/benches/data_benchmark.rs +++ b/data_store/benches/data_benchmark.rs @@ -7,7 +7,8 @@ use criterion::{criterion_group, criterion_main, Criterion}; use data_store::TypePathDataStore; use data_store::*; -use log_types::{FieldName, IndexKey, LogId}; +use itertools::Itertools; +use log_types::{FieldName, LogId}; const NUM_FRAMES: i64 = 1_000; // this can have a big impact on performance const NUM_POINTS_PER_CAMERA: u64 = 1_000; @@ -55,14 +56,31 @@ fn obj_path(camera: &str, index: u64) -> ObjPath { ])) } +fn type_path() -> ObjTypePath { + ObjTypePath::new(vec![ + TypePathComp::String("camera".into()), + TypePathComp::Index, + TypePathComp::String("point".into()), + TypePathComp::Index, + ]) +} + #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] struct Time(i64); -fn generate_date(individual_pos: bool, individual_radius: bool) -> TypePathDataStore