63ea9908c0
Add metastore benchmark suite to test metastore performance. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
16 lines
384 B
Go
16 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"))
|
|
})
|
|
}
|