options later

main
Ziyang Hu 2 years ago
parent 08a8b93ff5
commit c6ea6cd354

@ -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());
}

@ -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;

Loading…
Cancel
Save