Merge pull request #3166 from mxpv/refactor
Move snapshotters benchmark to a separate package
This commit is contained in:
commit
c9977b59f6
@ -47,7 +47,7 @@ make
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo su -
|
sudo su -
|
||||||
cd snapshots/testsuite/
|
cd snapshots/benchsuite/
|
||||||
go test -bench . \
|
go test -bench . \
|
||||||
-dm.thinPoolDev=bench-docker--pool \
|
-dm.thinPoolDev=bench-docker--pool \
|
||||||
-dm.rootPath=/mnt/disk1/data \
|
-dm.rootPath=/mnt/disk1/data \
|
||||||
|
19
snapshots/benchsuite/benchmark.go
Normal file
19
snapshots/benchsuite/benchmark.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// +build linux
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package benchsuite
|
@ -16,7 +16,7 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package testsuite
|
package benchsuite
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
Loading…
Reference in New Issue
Block a user