{"id":16896367,"url":"https://github.com/psychedelicious/hash_bench","last_synced_at":"2025-03-20T13:54:29.011Z","repository":{"id":224476321,"uuid":"763351626","full_name":"psychedelicious/hash_bench","owner":"psychedelicious","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-04T12:20:37.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T13:22:22.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psychedelicious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-26T06:04:11.000Z","updated_at":"2024-02-26T06:04:25.000Z","dependencies_parsed_at":"2024-02-26T07:28:35.813Z","dependency_job_id":"034b4cd8-0c9c-404a-ba95-3fbbbf2d6df0","html_url":"https://github.com/psychedelicious/hash_bench","commit_stats":null,"previous_names":["psychedelicious/hash_bench"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychedelicious%2Fhash_bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychedelicious%2Fhash_bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychedelicious%2Fhash_bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychedelicious%2Fhash_bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psychedelicious","download_url":"https://codeload.github.com/psychedelicious/hash_bench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244623034,"owners_count":20483060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T17:30:27.427Z","updated_at":"2025-03-20T13:54:28.990Z","avatar_url":"https://github.com/psychedelicious.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hash bench\n\nSimple script to benchmark file hashing algorithms in python. The files are stable diffusion models.\n\n## Setup\n\nRequires `blake3` and `tqdm`. The rest is python builtins.\n\n```sh\npip install -r requirements.txt\n```\n\n## Algorithms\n\nYou can easily add any `hashlib` algorithm in a naive (read the whole file into memory at once) or optimized (via memory view) implementations.\n\nUpdate `hash_functions` to test others:\n\n```py\nhash_functions = {\n    # Any `hashlib` algorithm works here\n    \"SHA1_naive\": get_hashlib_naive(\"sha1\"),\n    \"SHA1_mv\": get_hashlib_mv(\"sha1\"),\n    \"MD5_naive\": get_hashlib_naive(\"md5\"),\n    \"MD5_mv\": get_hashlib_mv(\"md5\"),\n    # BLAKE3 is not in `hashlib`, must use the provided functions\n    \"BLAKE3_mmap\": blake3_mmap,\n    \"BLAKE3_mv\": blake3_mv,\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsychedelicious%2Fhash_bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsychedelicious%2Fhash_bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsychedelicious%2Fhash_bench/lists"}