test/bench/tree.rb in compsci-0.0.3.1 vs test/bench/tree.rb in compsci-0.1.0.1

- old
+ new

@@ -11,16 +11,16 @@ # [10, 100, 1000, 2000, 5000] [10, 100, 1000, 2000] end bench_performance_constant "BinaryTree#push (constant)" do |n| - tree = BinaryTree.new(ChildNode, 42) + tree = NaryTree.new(ChildNode, 42, child_slots: 2) n.times { tree.push rand 99 } end bench_performance_linear "BinaryTree#push (linear)" do |n| skip "this fails with r^2 around 0.91" - tree = BinaryTree.new ChildNode.new 42 + tree = NaryTree.new(ChildNode, 42, child_slots: 2) n.times { tree.push rand 99 } end end