Add bolt db metastore implementation

Add metastore benchmark suite to test metastore performance.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2017-03-15 23:20:04 -07:00
parent 17e7e70fe2
commit 63ea9908c0
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
5 changed files with 1082 additions and 0 deletions

View file

@ -0,0 +1,16 @@
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"))
})
}