We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844f0ce commit 0e0ec26Copy full SHA for 0e0ec26
benchmarks/exp_hash.py
@@ -58,16 +58,6 @@ def build_parser() -> argparse.ArgumentParser:
58
return parser
59
60
61
-def _human_size(size: int) -> str:
62
- if size >= GB:
63
- return str(size / GB) + " GB"
64
- elif size >= MB:
65
- return str(size / MB) + " MB"
66
- elif size >= KB:
67
- return str(size / KB) + " KB"
68
- return str(size) + " B"
69
-
70
71
def _get_hasher(hash_algorithm: str) -> hashing.StreamingHashEngine:
72
# TODO: Once Python 3.9 support is deprecated revert to using `match`
73
if hash_algorithm == "sha256":
0 commit comments