17 lines
384 B
Go
17 lines
384 B
Go
|
package boltdb
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"path/filepath"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/docker/containerd/snapshot/storage"
|
||
|
"github.com/docker/containerd/snapshot/storage/testsuite"
|
||
|
)
|
||
|
|
||
|
func BenchmarkSuite(b *testing.B) {
|
||
|
testsuite.Benchmarks(b, "BoltDB", func(ctx context.Context, root string) (storage.MetaStore, error) {
|
||
|
return NewMetaStore(ctx, filepath.Join(root, "metadata.db"))
|
||
|
})
|
||
|
}
|