1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-07 23:18:43 +00:00

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

View file

@ -204,7 +204,7 @@ def chunkit(chunker_name, *args, **kwargs):
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 ========================================================") 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 items = [item.as_dict()] * 1000
size = "100k Items" size = "100k Items"
spec = "msgpack" spec = "msgpack"