initial macos porting work
This commit is contained in:
@@ -67,7 +67,9 @@ fn bench_scroll_list(c: &mut Criterion) {
|
||||
let viewport_height = 640.0;
|
||||
let n = 500;
|
||||
|
||||
let mut scroll_box = Element::scroll_box(0.0).width(400.0).height(viewport_height);
|
||||
let mut scroll_box = Element::scroll_box(0.0)
|
||||
.width(400.0)
|
||||
.height(viewport_height);
|
||||
for i in 0..n {
|
||||
scroll_box = scroll_box.child(
|
||||
Element::new()
|
||||
@@ -90,5 +92,10 @@ fn bench_scroll_list(c: &mut Criterion) {
|
||||
});
|
||||
}
|
||||
|
||||
criterion_group!(benches, bench_static_tree, bench_single_change, bench_scroll_list);
|
||||
criterion_group!(
|
||||
benches,
|
||||
bench_static_tree,
|
||||
bench_single_change,
|
||||
bench_scroll_list
|
||||
);
|
||||
criterion_main!(benches);
|
||||
|
||||
Reference in New Issue
Block a user