1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 10:18:12 +00:00

benchmark cpu: use sanitized path, fixes #7654

This commit is contained in:
Thomas Waldmann 2023-06-22 21:06:49 +02:00
parent 96076a71d2
commit 420eae6138
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

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"