Merge pull request #7665 from ThomasWaldmann/fix-benchmark

benchmark cpu: use sanitized path, fixes #7653
This commit is contained in:
TW 2023-06-22 21:56:31 +02:00 committed by GitHub
commit c89eb98c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class BenchmarkMixIn:
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)
item = Item(path="foo/bar/baz", mode=660, mtime=1234567)
items = [item.as_dict()] * 1000
size = "100k Items"
spec = "msgpack"