You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
381 B

package needle_map
import (
"testing"
"github.com/chrislusf/seaweedfs/weed/storage/types"
)
func BenchmarkMemDb(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
nm := NewMemDb()
nid := types.NeedleId(345)
offset := types.Offset{
OffsetHigher: types.OffsetHigher{},
OffsetLower: types.OffsetLower{},
}
nm.Set(nid, offset, 324)
nm.Close()
}
}