{"id":17129603,"url":"https://github.com/janos/distance","last_synced_at":"2025-03-24T04:31:44.863Z","repository":{"id":57583799,"uuid":"71065192","full_name":"janos/distance","owner":"janos","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-19T09:08:39.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T10:32:21.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janos.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":"2016-10-16T17:17:03.000Z","updated_at":"2020-01-19T09:08:40.000Z","dependencies_parsed_at":"2022-09-10T12:02:04.116Z","dependency_job_id":null,"html_url":"https://github.com/janos/distance","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fdistance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fdistance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fdistance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fdistance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janos","download_url":"https://codeload.github.com/janos/distance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245211040,"owners_count":20578331,"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-14T19:10:03.765Z","updated_at":"2025-03-24T04:31:44.824Z","avatar_url":"https://github.com/janos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distance\n\n[![GoDoc](https://godoc.org/resenje.org/distance?status.svg)](https://godoc.org/resenje.org/distance)\n\nDistance is a Go package with functions to calculate Hamming distance between two byte slices or unsigned integers, population (1 bite) count of byte slices or unsigned integers, and to XOR two byte slices.\n\n## Benchmarks\n\nBenchmarks on MacBook Pro 15'' (Mid 2014):\n\n    BenchmarkPopCountUint64-8       1000000000               0.299 ns/op           0 B/op          0 allocs/op\n    BenchmarkPopCount8Bytes-8       170056086                7.28 ns/op            0 B/op          0 allocs/op\n    BenchmarkXOR8Bytes-8            126639039                9.45 ns/op            0 B/op          0 allocs/op\n    BenchmarkHamming1Byte-8         219764226                5.42 ns/op            0 B/op          0 allocs/op\n    BenchmarkHamming8Bytes-8        141195171                8.59 ns/op            0 B/op          0 allocs/op\n    BenchmarkHamming16Bytes-8       92126083                12.4 ns/op             0 B/op          0 allocs/op\n    BenchmarkHamming32Bytes-8       56141322                20.2 ns/op             0 B/op          0 allocs/op\n    BenchmarkHamming33Bytes-8       53014400                20.8 ns/op             0 B/op          0 allocs/op\n    BenchmarkHamming64Bytes-8       31677573                35.8 ns/op             0 B/op          0 allocs/op\n    BenchmarkHamming128Bytes-8      17375133                67.1 ns/op             0 B/op          0 allocs/op\n    BenchmarkHamming1KBytes-8        2557718               458 ns/op               0 B/op          0 allocs/op\n    BenchmarkHamming10KBytes-8        257976              4370 ns/op               0 B/op          0 allocs/op\n    BenchmarkHamming1MByte-8            2464            444376 ns/op               0 B/op          0 allocs/op\n\n## License\n\nSource files are distributed under the BSD-style license found in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanos%2Fdistance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanos%2Fdistance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanos%2Fdistance/lists"}