예제 #1
0
func BenchmarkBPT(b *testing.B) {
	t := bpt.NewTree()
	for i := 0; i < b.N; i++ {
		x := bpt.UUID()
		t.Set(x, x)
	}
}
예제 #2
0
func BenchmarkBPlusTree(b *testing.B) {
	t := bplus.NewTree(bytes.Compare)
	for i := 0; i < b.N; i++ {
		x := bpt.UUID()
		t.Set(x, x)
	}
}
예제 #3
0
func init() {
	for i := 0; i < size; i++ {
		data[i] = bpt.UUID()
	}
}