diff --git a/cozo-core/benches/pokec.rs b/cozo-core/benches/pokec.rs index 820d2999..c928a663 100644 --- a/cozo-core/benches/pokec.rs +++ b/cozo-core/benches/pokec.rs @@ -1032,25 +1032,4 @@ fn mixed(_: &mut Bencher) { wrap(mixed_pct, single_vertex); }); dbg!((count as f64) / single_vertex_time.elapsed().as_secs_f64()); - - let single_vertex_write_time = Instant::now(); - count = 10000; - (0..count).into_par_iter().for_each(|_| { - wrap(mixed_pct, single_vertex_write); - }); - dbg!((count as f64) / single_vertex_write_time.elapsed().as_secs_f64()); - - let single_edge_write_time = Instant::now(); - count = 10000; - (0..count).into_par_iter().for_each(|_| { - wrap(mixed_pct, single_edge_write); - }); - dbg!((count as f64) / single_edge_write_time.elapsed().as_secs_f64()); - - let single_vertex_update_time = Instant::now(); - count = 10000; - (0..count).into_par_iter().for_each(|_| { - wrap(mixed_pct, single_vertex_update); - }); - dbg!((count as f64) / single_vertex_update_time.elapsed().as_secs_f64()); } diff --git a/cozorocks/bridge/db.cpp b/cozorocks/bridge/db.cpp index 4082b2f2..fa3fc967 100644 --- a/cozorocks/bridge/db.cpp +++ b/cozorocks/bridge/db.cpp @@ -36,10 +36,10 @@ ColumnFamilyOptions default_cf_options() { options.level_compaction_dynamic_level_bytes = true; options.compaction_pri = kMinOverlappingRatio; - auto cache = NewLRUCache(128 << 20); +// auto cache = NewLRUCache(128 << 20); BlockBasedTableOptions table_options; - table_options.block_cache = cache; +// table_options.block_cache = cache; table_options.block_size = 16 * 1024; table_options.cache_index_and_filter_blocks = true;