Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaidsasa/workerpool
Concurrency limiting goroutine pool
https://github.com/zaidsasa/workerpool
concurrency golang goroutine worker-pool
Last synced: 17 days ago
JSON representation
Concurrency limiting goroutine pool
- Host: GitHub
- URL: https://github.com/zaidsasa/workerpool
- Owner: zaidsasa
- License: mit
- Created: 2024-02-18T18:33:51.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-17T18:18:00.000Z (about 2 months ago)
- Last Synced: 2024-11-17T19:26:20.011Z (about 2 months ago)
- Topics: concurrency, golang, goroutine, worker-pool
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Worker Pool
[![GoDoc](https://pkg.go.dev/badge/github.com/zaidsasa/workerpool)](https://pkg.go.dev/github.com/zaidsasa/workerpool)
[![codecov](https://codecov.io/gh/zaidsasa/workerpool/graph/badge.svg?token=YKCHWB1966)](https://codecov.io/gh/zaidsasa/workerpool)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/zaidsasa/workerpool/blob/main/LICENSE)Concurrency limiting goroutine pool
## Supported go versions
We currently support the most recent major Go versions from 1.21 onward.
## Contributing
Please feel free to submit issues, fork the repository and send pull requests!
## License
This project is licensed under the terms of the MIT license.
## Benchmark
### Run
```
go test -bench=. -benchmem -run=none
```### Result
```
goos: darwin
goarch: amd64
pkg: github.com/zaidsasa/workerpool
cpu: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
BenchmarkGoroutines-8 3 395232765 ns/op 98106917 B/op 2015184 allocs/op
BenchmarkWorkerPool-8 4 308275120 ns/op 3776014 B/op 54226 allocs/op
PASS
ok github.com/zaidsasa/workerpool 5.122s
```