{"id":18403721,"url":"https://github.com/russellluo/timingwheel","last_synced_at":"2025-05-16T11:06:05.459Z","repository":{"id":33271873,"uuid":"151016118","full_name":"RussellLuo/timingwheel","owner":"RussellLuo","description":"Golang implementation of Hierarchical Timing Wheels.","archived":false,"fork":false,"pushed_at":"2023-07-11T02:05:50.000Z","size":33,"stargazers_count":679,"open_issues_count":21,"forks_count":126,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-16T11:05:55.045Z","etag":null,"topics":["go","timer"],"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/RussellLuo.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":"2018-09-30T23:29:40.000Z","updated_at":"2025-04-23T10:30:51.000Z","dependencies_parsed_at":"2024-06-18T12:29:31.901Z","dependency_job_id":"84336d56-7ba1-4e46-8960-4ded291effa4","html_url":"https://github.com/RussellLuo/timingwheel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Ftimingwheel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Ftimingwheel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Ftimingwheel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Ftimingwheel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RussellLuo","download_url":"https://codeload.github.com/RussellLuo/timingwheel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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","timer"],"created_at":"2024-11-06T02:48:01.196Z","updated_at":"2025-05-16T11:06:00.449Z","avatar_url":"https://github.com/RussellLuo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timingwheel\n\nGolang implementation of Hierarchical Timing Wheels.\n\n\n## Installation\n\n```bash\n$ go get -u github.com/RussellLuo/timingwheel\n```\n\n\n## Design\n\n`timingwheel` is ported from Kafka's [purgatory][1], which is designed based on [Hierarchical Timing Wheels][2].\n\n中文博客：[层级时间轮的 Golang 实现][3]。\n\n\n## Documentation\n\nFor usage and examples see the [Godoc][4].\n\n\n## Benchmark\n\n```\n$ go test -bench=. -benchmem\ngoos: darwin\ngoarch: amd64\npkg: github.com/RussellLuo/timingwheel\nBenchmarkTimingWheel_StartStop/N-1m-8            5000000               329 ns/op              83 B/op          2 allocs/op\nBenchmarkTimingWheel_StartStop/N-5m-8            5000000               363 ns/op              95 B/op          2 allocs/op\nBenchmarkTimingWheel_StartStop/N-10m-8           5000000               440 ns/op              37 B/op          1 allocs/op\nBenchmarkStandardTimer_StartStop/N-1m-8         10000000               199 ns/op              64 B/op          1 allocs/op\nBenchmarkStandardTimer_StartStop/N-5m-8          2000000               644 ns/op              64 B/op          1 allocs/op\nBenchmarkStandardTimer_StartStop/N-10m-8          500000              2434 ns/op              64 B/op          1 allocs/op\nPASS\nok      github.com/RussellLuo/timingwheel       116.977s\n```\n\n\n## License\n\n[MIT][5]\n\n\n[1]: https://www.confluent.io/blog/apache-kafka-purgatory-hierarchical-timing-wheels/\n[2]: http://www.cs.columbia.edu/~nahum/w6998/papers/ton97-timing-wheels.pdf\n[3]: http://russellluo.com/2018/10/golang-implementation-of-hierarchical-timing-wheels.html\n[4]: https://godoc.org/github.com/RussellLuo/timingwheel\n[5]: http://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussellluo%2Ftimingwheel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frussellluo%2Ftimingwheel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussellluo%2Ftimingwheel/lists"}