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:
parent
17e7e70fe2
commit
63ea9908c0
5 changed files with 1082 additions and 0 deletions
16
snapshot/storage/boltdb/bolt_test.go
Normal file
16
snapshot/storage/boltdb/bolt_test.go
Normal 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"))
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue