mirror of
https://github.com/kopia/kopia.git
synced 2026-05-18 11:44:36 -04:00
moved all compression to separate package and sanitized identifiers
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"time"
|
||||
|
||||
"github.com/kopia/kopia/internal/units"
|
||||
"github.com/kopia/kopia/repo/object"
|
||||
"github.com/kopia/kopia/repo/compression"
|
||||
|
||||
kingpin "gopkg.in/alecthomas/kingpin.v2"
|
||||
)
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
func runBenchmarkCompressionAction(ctx *kingpin.ParseContext) error {
|
||||
type benchResult struct {
|
||||
compression object.CompressorName
|
||||
compression compression.Name
|
||||
throughput float64
|
||||
compressedSize int64
|
||||
}
|
||||
@@ -41,7 +41,7 @@ type benchResult struct {
|
||||
data = d
|
||||
}
|
||||
|
||||
for name, comp := range object.CompressorsByName {
|
||||
for name, comp := range compression.ByName {
|
||||
log.Infof("Benchmarking compressor '%v' (%v x %v bytes)", name, *benchmarkCompressionRepeat, len(data))
|
||||
|
||||
t0 := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user