|
|
@ -1032,25 +1032,4 @@ fn mixed(_: &mut Bencher) {
|
|
|
|
wrap(mixed_pct, single_vertex);
|
|
|
|
wrap(mixed_pct, single_vertex);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
dbg!((count as f64) / single_vertex_time.elapsed().as_secs_f64());
|
|
|
|
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());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|