panjf2000 / ants

🐜🐜🐜 ants is the most powerful and reliable pooling solution for Go.
https://ants.andypan.me/
MIT License
12.69k stars 1.36k forks source link

[Question]: possible to provide advise on when should we use this gopool vs ants? #322

Closed ouvaa closed 4 months ago

ouvaa commented 5 months ago

Questions with details

  1. in what scenario will this be better? https://github.com/devchat-ai/gopool

  2. i've tried the go 1.22.2 normal "go" goroutine. is there still a huge performance difference between ants vs current std lib go routine now? i mean possible to update the benchmark?

Code snippets (optional)

No response

panjf2000 commented 4 months ago

Sorry, I have no advice on how users choose their solution of goroutine-pool. I think you should write some demo code and run some tests yourself, then find out which one is the best fit for your business.