Tree: increase to 500**2 to test performance

This commit is contained in:
Cecile Tonglet 2020-09-18 21:20:16 +02:00
parent eafd9bc339
commit de2b121443

View file

@ -56,7 +56,7 @@ impl Component for App {
InsertBehavior::UnderNode(&root_id), InsertBehavior::UnderNode(&root_id),
) )
.unwrap(); .unwrap();
for i in 0..100 { for i in 0..500 {
let dir2 = tree let dir2 = tree
.insert( .insert(
Node::new(NodeData { Node::new(NodeData {
@ -69,7 +69,7 @@ impl Component for App {
InsertBehavior::UnderNode(&dir1), InsertBehavior::UnderNode(&dir1),
) )
.unwrap(); .unwrap();
for i in 0..100 { for i in 0..500 {
tree.insert( tree.insert(
Node::new(NodeData { Node::new(NodeData {
icon: Some(IconName::Document), icon: Some(IconName::Document),