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:
parent
96076a71d2
commit
420eae6138
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue