{"id":15687815,"url":"https://github.com/orisano/wyhash","last_synced_at":"2025-04-14T10:10:49.588Z","repository":{"id":37735195,"uuid":"184406477","full_name":"orisano/wyhash","owner":"orisano","description":"A pure-Go wyhash implementation.","archived":false,"fork":false,"pushed_at":"2025-03-18T09:42:46.000Z","size":118,"stargazers_count":33,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T19:08:09.880Z","etag":null,"topics":["go","hash","wyhash"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orisano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2019-05-01T11:27:08.000Z","updated_at":"2025-03-18T09:42:49.000Z","dependencies_parsed_at":"2024-01-15T09:39:21.501Z","dependency_job_id":"259ff0b9-013e-42e7-b8e2-f51c8456a390","html_url":"https://github.com/orisano/wyhash","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fwyhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fwyhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fwyhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fwyhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/wyhash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860217,"owners_count":21173342,"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":["go","hash","wyhash"],"created_at":"2024-10-03T17:51:11.982Z","updated_at":"2025-04-14T10:10:49.559Z","avatar_url":"https://github.com/orisano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wyhash\n\n[![CircleCI](https://circleci.com/gh/orisano/wyhash.svg?style=svg)](https://circleci.com/gh/orisano/wyhash)\n[![GoDoc](https://godoc.org/github.com/orisano/wyhash?status.svg)](https://godoc.org/github.com/orisano/wyhash)\n\nA pure-Go wyhash implementation.\n\n## How to use\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"io\"\n\t\"os\"\n\n\t\"github.com/orisano/wyhash\"\n)\n\nfunc main() {\n\tseed := flag.Int(\"s\", 0, \"seed value\")\n\tflag.Parse()\n\n\th := wyhash.New(uint64(*seed))\n\tio.Copy(h, os.Stdin)\n\tfmt.Printf(\"%x\\n\", h.Sum64())\n}\n```\n\n## Benchmark\n```\n$ go test -bench . -count=5\ngoos: linux\ngoarch: amd64\npkg: github.com/orisano/wyhash\nBenchmarkHash8Bytes-36             \t239112354\t         5.02 ns/op\t1593.40 MB/s\nBenchmarkHash8Bytes-36             \t238774428\t         5.02 ns/op\t1593.65 MB/s\nBenchmarkHash8Bytes-36             \t239230683\t         5.02 ns/op\t1593.35 MB/s\nBenchmarkHash8Bytes-36             \t233548692\t         5.03 ns/op\t1589.73 MB/s\nBenchmarkHash8Bytes-36             \t240766962\t         5.01 ns/op\t1596.49 MB/s\nBenchmarkHash320Bytes-36           \t39866637\t        30.2 ns/op\t10602.81 MB/s\nBenchmarkHash320Bytes-36           \t38263518\t        30.1 ns/op\t10626.23 MB/s\nBenchmarkHash320Bytes-36           \t39905398\t        30.2 ns/op\t10607.83 MB/s\nBenchmarkHash320Bytes-36           \t39833031\t        30.1 ns/op\t10632.60 MB/s\nBenchmarkHash320Bytes-36           \t39827767\t        30.1 ns/op\t10648.74 MB/s\nBenchmarkHash1K-36                 \t13151994\t        91.5 ns/op\t11191.01 MB/s\nBenchmarkHash1K-36                 \t13109916\t        91.5 ns/op\t11187.74 MB/s\nBenchmarkHash1K-36                 \t13137547\t        91.6 ns/op\t11183.96 MB/s\nBenchmarkHash1K-36                 \t13094876\t        91.6 ns/op\t11173.48 MB/s\nBenchmarkHash1K-36                 \t13119465\t        91.7 ns/op\t11170.75 MB/s\nBenchmarkHash8K-36                 \t 1818872\t       662 ns/op\t12378.54 MB/s\nBenchmarkHash8K-36                 \t 1815982\t       657 ns/op\t12475.84 MB/s\nBenchmarkHash8K-36                 \t 1810904\t       675 ns/op\t12143.65 MB/s\nBenchmarkHash8K-36                 \t 1790918\t       670 ns/op\t12232.80 MB/s\nBenchmarkHash8K-36                 \t 1815848\t       660 ns/op\t12407.03 MB/s\nBenchmarkDigest_Hash8Bytes-36      \t75824784\t        15.8 ns/op\t 504.92 MB/s\nBenchmarkDigest_Hash8Bytes-36      \t75778485\t        15.8 ns/op\t 505.87 MB/s\nBenchmarkDigest_Hash8Bytes-36      \t75971301\t        16.1 ns/op\t 496.39 MB/s\nBenchmarkDigest_Hash8Bytes-36      \t73296864\t        15.8 ns/op\t 506.77 MB/s\nBenchmarkDigest_Hash8Bytes-36      \t75797804\t        15.8 ns/op\t 507.25 MB/s\nBenchmarkDigest_Hash320Bytes-36    \t32235518\t        37.4 ns/op\t8567.48 MB/s\nBenchmarkDigest_Hash320Bytes-36    \t31975928\t        38.2 ns/op\t8384.57 MB/s\nBenchmarkDigest_Hash320Bytes-36    \t32122788\t        37.5 ns/op\t8544.50 MB/s\nBenchmarkDigest_Hash320Bytes-36    \t31351216\t        37.5 ns/op\t8542.51 MB/s\nBenchmarkDigest_Hash320Bytes-36    \t32137383\t        37.5 ns/op\t8522.40 MB/s\nBenchmarkDigest_Hash1K-36          \t12877767\t        92.9 ns/op\t11020.89 MB/s\nBenchmarkDigest_Hash1K-36          \t12920068\t        92.8 ns/op\t11028.94 MB/s\nBenchmarkDigest_Hash1K-36          \t12926998\t        92.9 ns/op\t11024.32 MB/s\nBenchmarkDigest_Hash1K-36          \t12930212\t        93.1 ns/op\t10996.36 MB/s\nBenchmarkDigest_Hash1K-36          \t12938821\t        93.0 ns/op\t11012.81 MB/s\nBenchmarkDigest_Hash8K-36          \t 1798011\t       675 ns/op\t12134.26 MB/s\nBenchmarkDigest_Hash8K-36          \t 1794015\t       668 ns/op\t12258.51 MB/s\nBenchmarkDigest_Hash8K-36          \t 1796629\t       668 ns/op\t12261.52 MB/s\nBenchmarkDigest_Hash8K-36          \t 1795533\t       669 ns/op\t12251.80 MB/s\nBenchmarkDigest_Hash8K-36          \t 1793821\t       664 ns/op\t12329.72 MB/s\nPASS\nok  \tgithub.com/orisano/wyhash\t58.638s\n```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n\n## Reference\n* [wangyi-fudan/wyhash](https://github.com/wangyi-fudan/wyhash)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fwyhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fwyhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fwyhash/lists"}