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]) } } }
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() }