Concurrency limiting goroutine pool
We currently support the most recent major Go versions from 1.21 onward.
Please feel free to submit issues, fork the repository and send pull requests!
This project is licensed under the terms of the MIT license.
go test -bench=. -benchmem -run=none
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