netpoll icon indicating copy to clipboard operation
netpoll copied to clipboard

can this do prefork and have prefork benchmark?

Open hiqsociety opened this issue 2 years ago • 3 comments

can this do prefork and have prefork benchmark?

hiqsociety avatar May 29 '22 08:05 hiqsociety

Do you mean multi-process prefork ? No, we don't have process or thread level control, all operations are based on goroutine.

Hchenn avatar May 30 '22 03:05 Hchenn

is this faster or slower than using goroutine in general? in terms of req/s u reckon? coz according to techempower benchmark, prefork mode is faster https://www.techempower.com/benchmarks/#section=data-r20&hw=ph&test=plaintext

hiqsociety avatar May 30 '22 04:05 hiqsociety

I know about this benchmark and have seen some top-ranked repos, but I don't think it can be used as a reference for production environments.

I've seen some prefork repos before, but haven't gotten the inspiration yet. I still need to learn more in the future.

In short, prefork is planned for future research

Hchenn avatar May 31 '22 03:05 Hchenn