{"id":19936320,"url":"https://github.com/rryqszq4/go-murmurhash","last_synced_at":"2025-08-02T05:37:33.791Z","repository":{"id":57509472,"uuid":"193088726","full_name":"rryqszq4/go-murmurhash","owner":"rryqszq4","description":"go-murmurhash is Go implementation of murmurhash algorithm.","archived":false,"fork":false,"pushed_at":"2020-09-28T09:54:39.000Z","size":19,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T13:40:26.423Z","etag":null,"topics":["go","golang","murmurhash"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rryqszq4.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}},"created_at":"2019-06-21T11:45:27.000Z","updated_at":"2024-12-10T02:57:03.000Z","dependencies_parsed_at":"2022-09-26T17:51:09.647Z","dependency_job_id":null,"html_url":"https://github.com/rryqszq4/go-murmurhash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rryqszq4/go-murmurhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rryqszq4%2Fgo-murmurhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rryqszq4%2Fgo-murmurhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rryqszq4%2Fgo-murmurhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rryqszq4%2Fgo-murmurhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rryqszq4","download_url":"https://codeload.github.com/rryqszq4/go-murmurhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rryqszq4%2Fgo-murmurhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268339412,"owners_count":24234545,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","golang","murmurhash"],"created_at":"2024-11-12T23:25:12.336Z","updated_at":"2025-08-02T05:37:33.756Z","avatar_url":"https://github.com/rryqszq4.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-murmurhash\n\ngo-murmurhash is Go implementation of murmurhash algorithm.\n\n## Installation\n```sh\ngo get github.com/rryqszq4/go-murmurhash\n```\n## Usage\n```go\npackage main\n\nimport (\n   \"fmt\"\n   . \"github.com/rryqszq4/go-murmurhash\"\n)\n\nfunc main() {\n   var foo string = \"foo\"\n   var seed uint32 = 0x12345678\n   \n   var key = []byte(foo)\n   \n   fmt.Printf(\"%d\\n\", MurmurHash64A(key, uint64(seed)))\n}\n```\n\n## API\n```\nfunc MurmurHash1 (key []byte, seed uint32) (hash uint32)\nfunc MurmurHash1Aligned(key []byte, seed uint32) (hash uint32)\n\nfunc MurmurHash2 (key []byte, seed uint32) (hash uint32)\nfunc MurmurHash64A (key []byte, seed uint64) (hash uint64)\nfunc MurmurHash64B(key []byte, seed uint64) (hash uint64)\nfunc MurmurHash2A(key []byte, seed uint32) (hash uint32)\nfunc MurmurHashNeutral2(key []byte, seed uint32) (hash uint32)\nfunc MurmurHashAligned2(key []byte, seed uint32) (hash uint32)\n\nfunc MurmurHash3_x86_32(key []byte, seed uint32) (hash uint32)\nfunc MurmurHash3_x86_128(key []byte, seed uint32) (hash [4]uint32)\nfunc MurmurHash3_x64_128(key []byte, seed uint64) (hash [2]uint64)\n```\n## Test\ncd test; go test -v\n```\n=== RUN   TestMurmurHash1\n--- PASS: TestMurmurHash1 (0.00s)\n=== RUN   TestMurmurHash1Aligned\n--- PASS: TestMurmurHash1Aligned (0.00s)\n=== RUN   TestMurmurHash2\n--- PASS: TestMurmurHash2 (0.00s)\n=== RUN   TestMurmurHash64A\n--- PASS: TestMurmurHash64A (0.00s)\n=== RUN   TestMurmurHash64B\n--- PASS: TestMurmurHash64B (0.00s)\n=== RUN   TestMurmurHash2A\n--- PASS: TestMurmurHash2A (0.00s)\n=== RUN   TestMurmurHashNeutral2\n--- PASS: TestMurmurHashNeutral2 (0.00s)\n=== RUN   TestMurmurHashAligned2\n--- PASS: TestMurmurHashAligned2 (0.00s)\n=== RUN   TestMurmurHash3_x86_32\n--- PASS: TestMurmurHash3_x86_32 (0.00s)\n=== RUN   TestMurmurHash3_x86_128\n--- PASS: TestMurmurHash3_x86_128 (0.00s)\n=== RUN   TestMurmurHash3_x64_128\n--- PASS: TestMurmurHash3_x64_128 (0.00s)\n=== RUN   ExampleMurmurHash1\n--- PASS: ExampleMurmurHash1 (0.00s)\n=== RUN   ExampleMurmurHash1Aligned\n--- PASS: ExampleMurmurHash1Aligned (0.00s)\nPASS\n```\n\n\ngo test -bench=. -benchmem\n```\ngoos: darwin\ngoarch: amd64\nBenchmarkMurmurHash1-8           \t300000000\t         5.87 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash1Aligned-8    \t200000000\t         6.94 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash2-8           \t300000000\t         5.54 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash64A-8         \t300000000\t         5.85 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash64B-8         \t200000000\t         7.17 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash2A-8          \t200000000\t         6.19 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHashNeutral2-8    \t200000000\t         6.39 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHashAligned2-8    \t300000000\t         5.89 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash3_x86_32-8    \t300000000\t         5.96 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash3_x86_128-8   \t300000000\t         5.65 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMurmurHash3_x64_128-8   \t300000000\t         5.64 ns/op\t       0 B/op\t       0 allocs/op\nPASS\n```\n\n## License\n```\nBSD 2-Clause License\n\nCopyright (c) 2019, rryqszq4 \u003crryqszq@gmail.com\u003e\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frryqszq4%2Fgo-murmurhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frryqszq4%2Fgo-murmurhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frryqszq4%2Fgo-murmurhash/lists"}