This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Robust HD/SDD/NVMe performance CLI utility | |
| # Utilizing FIO for sequential/random writes/writes | |
| # Dependencies: fio (apt install fio) | |
| # See: https://cloud.google.com/compute/docs/disks/benchmarking-pd-performance | |
| # See: https://arstechnica.com/gadgets/2020/02/how-fast-are-your-disks-find-out-the-open-source-way-with-fio/ | |
| # mReschke 2024-01-18 | |
| # CLI Parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import struct | |
| from murmurhash2 import murmurhash2, murmurhash3 | |
| # pip install murmurhash2 | |
| def murmur_hash_2(data, seed=0): | |
| length = len(data) | |
| nblocks = length // 4 | |
| h1 = seed | |
| c1 = 0xcc9e2d51 |
OlderNewer