@@ -79,30 +79,29 @@ fn taffy_benchmarks(c: &mut Criterion) {
79
79
let mut taffy = Taffy :: new ( ) ;
80
80
let root = build_deep_hierarchy ( & mut taffy, 100_000 , 7 ) ;
81
81
82
- b. iter ( || taffy. compute_layout ( root, Size :: NONE ) . unwrap ( ) )
82
+ b. iter ( || taffy. compute_layout ( root, Size :: MAX_CONTENT ) . unwrap ( ) )
83
83
} ) ;
84
84
85
85
group. bench_function ( "4000 nodes (12-level hierarchy)" , |b| {
86
86
let mut taffy = Taffy :: new ( ) ;
87
87
let root = build_deep_hierarchy ( & mut taffy, 4000 , 2 ) ;
88
88
89
- b. iter ( || taffy. compute_layout ( root, Size :: NONE ) . unwrap ( ) )
89
+ b. iter ( || taffy. compute_layout ( root, Size :: MAX_CONTENT ) . unwrap ( ) )
90
90
} ) ;
91
91
92
- // Slow. To be enabled once performance improvements land.
93
- // group.bench_function("10_000 nodes (14-level hierarchy)", |b| {
94
- // let mut taffy = Taffy::new();
95
- // let root = build_deep_hierarchy(&mut taffy, 10_000, 2);
92
+ group. bench_function ( "10_000 nodes (14-level hierarchy)" , |b| {
93
+ let mut taffy = Taffy :: new ( ) ;
94
+ let root = build_deep_hierarchy ( & mut taffy, 10_000 , 2 ) ;
96
95
97
- // b.iter(|| taffy.compute_layout(root, Size::NONE ).unwrap())
98
- // });
96
+ b. iter ( || taffy. compute_layout ( root, Size :: MAX_CONTENT ) . unwrap ( ) )
97
+ } ) ;
99
98
100
99
// Slow. To be enabled once performance improvements land.
101
100
// group.bench_function("100_000 nodes (17-level hierarchy)", |b| {
102
101
// let mut taffy = Taffy::new();
103
102
// let root = build_deep_hierarchy(&mut taffy, 100_000, 2);
104
103
105
- // b.iter(|| taffy.compute_layout(root, Size::NONE ).unwrap())
104
+ // b.iter(|| taffy.compute_layout(root, Size::MAX_CONTENT ).unwrap())
106
105
// });
107
106
}
108
107
0 commit comments