Merge pull request #7076 from ThomasWaldmann/fix-benchmark-compression-api

benchmark: fixed TypeError in compression benchmarks, fixes #7075
This commit is contained in:
TW 2022-10-05 23:19:15 +02:00 committed by GitHub
commit 13f90ed8b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)