Example #1
0
func Benchmark_bptx_Set(b *testing.B) {
	for i := 0; i < b.N; i++ {
		t := bptx.NewTree()
		for i := 0; i < size; i++ {
			t.Set(data[i], data[i])
		}
	}
}
Example #2
0
func main() {
	prof := profile.CPUProfile
	//prof := profile.MemProfile
	defer profile.Start(prof, profile.ProfilePath(".")).Stop()

	t := bptx.NewTree()
	for i := 0; i < 10000; i++ {
		x := bptx.UUID()
		t.Set(x, x)
	}
	t.Close()
}