func BenchmarkMarkComplete(b *testing.B) {
const pieceSize = test_storage.DefaultPieceSize
const noTriggers = false
+ const noCacheBlobs = false
var capacity int64 = test_storage.DefaultNumPieces * pieceSize / 2
if noTriggers {
// Since we won't push out old pieces, we have to mark them incomplete manually.
var opts squirrel.NewCacheOpts
opts.Capacity = capacity
opts.NoTriggers = noTriggers
+ opts.NoCacheBlobs = noCacheBlobs
benchOpts := func(b *testing.B) {
opts.Path = filepath.Join(b.TempDir(), "storage.db")
ci, err := NewDirectStorage(opts)
// opts.GcBlobs = true
opts.BlobFlushInterval = time.Second
opts.NoTriggers = noTriggers
+ opts.NoCacheBlobs = noCacheBlobs
directBench := func(b *testing.B) {
opts.Path = filepath.Join(b.TempDir(), "storage.db")
ci, err := NewDirectStorage(opts)