Using a simple test to evaluate BTree vs. ConcurrentSlipListMap, creating the 
BTree as follows:

BTree<String, byte[]> btree = new BTreeFactory().createInMemoryBTree( "test", 
new StringSerializer(StringComparator.INSTANCE), new 
ByteArraySerializer(ByteArrayComparator.INSTANCE));

And using insert() to add 5M keys with a small (16 byte) value and iterating 
over a browse cursor to scan gave:

Run test: BTree
create tree
Start load
time to load 5000000 values 8330094154 (8.33009408 secs)
time to scan 5000000 values 233224649 (0.233224656 secs)

Run test: skip list
create skip list
Start load
time to load 5000000 values 4582309650 (4.582309888 secs)
time to scan 5000000 values 113716936 (0.113716936 secs)

This seems disappointing as expected better performance from the BTree, am I 
misusing or misconfiguring the map for this test case?


(this was a 4 code Mac w/ 16GB memory)

Thanks,
Bob

_______________________
Robert Geiger
Chief Architect, Ampool Inc.
+1 408-833-4527

Reply via email to