summaryrefslogtreecommitdiff
path: root/utils/benchmark-verify.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-26 13:00:56 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-26 13:03:05 +0200
commite907b0f04354873316311072da572943abb6281a (patch)
tree1f8129299e812a3aa2fe5e1e9a9c823ce58772c7 /utils/benchmark-verify.py
parent572da07948b921feb35af5b098f50af7d8dea99a (diff)
downloadgemato-e907b0f04354873316311072da572943abb6281a.tar.gz
Modernize via pyupgrade
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'utils/benchmark-verify.py')
-rwxr-xr-xutils/benchmark-verify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/benchmark-verify.py b/utils/benchmark-verify.py
index d0b2259..e2fb00f 100755
--- a/utils/benchmark-verify.py
+++ b/utils/benchmark-verify.py
@@ -11,13 +11,13 @@ import gemato.recursiveloader
def benchmark(path):
m = gemato.recursiveloader.ManifestRecursiveLoader(path)
- print('load-dict: {}'.format(timeit.timeit(m.get_file_entry_dict, number=1)))
- print('verify: {}'.format(timeit.timeit(m.assert_directory_verifies, number=1)))
+ print(f'load-dict: {timeit.timeit(m.get_file_entry_dict, number=1)}')
+ print(f'verify: {timeit.timeit(m.assert_directory_verifies, number=1)}')
if __name__ == '__main__':
if len(sys.argv) != 2:
- print('Usage: {} <top-level-manifest>'.format(sys.argv[0]))
+ print(f'Usage: {sys.argv[0]} <top-level-manifest>')
sys.exit(1)
benchmark(sys.argv[1])