This is an automated email from the ASF dual-hosted git repository. mck pushed a commit to branch cassandra-3.0 in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit fccbfbaa4f9d09b2ea18997ea0f13323d74234fa Merge: 577a9e3 ca8469e Author: Mick Semb Wever <m...@apache.org> AuthorDate: Wed Jan 8 08:22:35 2020 +0100 Merge branch 'cassandra-2.2' into cassandra-3.0 test/burn/org/apache/cassandra/utils/LongBTreeTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --cc test/burn/org/apache/cassandra/utils/LongBTreeTest.java index 5044290,5b91a5e..c052015 --- a/test/burn/org/apache/cassandra/utils/LongBTreeTest.java +++ b/test/burn/org/apache/cassandra/utils/LongBTreeTest.java @@@ -44,24 -51,16 +44,24 @@@ import com.codahale.metrics.MetricRegis import com.codahale.metrics.Snapshot; import com.codahale.metrics.Timer; import org.apache.cassandra.concurrent.NamedThreadFactory; -import org.apache.cassandra.utils.btree.BTree; -import org.apache.cassandra.utils.btree.BTreeSearchIterator; -import org.apache.cassandra.utils.btree.BTreeSet; -import org.apache.cassandra.utils.btree.UpdateFunction; +import org.apache.cassandra.utils.btree.*; + +import static com.google.common.base.Predicates.notNull; +import static com.google.common.collect.Iterables.filter; +import static com.google.common.collect.Iterables.transform; +import static java.util.Comparator.naturalOrder; +import static java.util.Comparator.reverseOrder; +import static org.apache.cassandra.utils.btree.BTree.iterable; +import static org.junit.Assert.assertTrue; -// TODO : should probably lower fan-factor for tests to make them more intensive public class LongBTreeTest { - private static final int ITERATIONS = 10000; + private static final boolean DEBUG = false; - private static int perThreadTrees = 10000; ++ private static int perThreadTrees = 100; + private static int minTreeSize = 4; + private static int maxTreeSize = 10000; + private static int threads = DEBUG ? 1 : Runtime.getRuntime().availableProcessors() * 8; private static final MetricRegistry metrics = new MetricRegistry(); private static final Timer BTREE_TIMER = metrics.timer(MetricRegistry.name(BTree.class, "BTREE")); private static final Timer TREE_TIMER = metrics.timer(MetricRegistry.name(BTree.class, "TREE")); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org