mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Merge pull request #7076 from ThomasWaldmann/fix-benchmark-compression-api
benchmark: fixed TypeError in compression benchmarks, fixes #7075
This commit is contained in:
commit
13f90ed8b3
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ class BenchmarkMixIn:
|
|||
]:
|
||||
compressor = CompressionSpec(spec).compressor
|
||||
size = "0.1GB"
|
||||
print(f"{spec:<12} {size:<10} {timeit(lambda: compressor.compress(random_10M), number=10):.3f}s")
|
||||
print(f"{spec:<12} {size:<10} {timeit(lambda: compressor.compress({}, random_10M), number=10):.3f}s")
|
||||
|
||||
print("msgpack ========================================================")
|
||||
item = Item(path="/foo/bar/baz", mode=660, mtime=1234567)
|
||||
|
|
|
|||
Loading…
Reference in a new issue