Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is faster than standard library? #24

Open
madewithmind opened this issue Jul 16, 2023 · 3 comments
Open

Why is faster than standard library? #24

madewithmind opened this issue Jul 16, 2023 · 3 comments
Assignees

Comments

@madewithmind
Copy link

Any benchmark and proof?

@singchia
Copy link
Owner

😀 Benchmarks are working in progress, according my historical tests, when goroutines expand about to 5k-1w, the lib has a lesser time diff and lesser resources usage. The performance consideration is partial reason to create the lib, mostly to provide some easier method and patterns for async handler scene. If you are interested about it, welcome to PR for tests or features.

@FJSDS
Copy link

FJSDS commented Aug 3, 2023

只是相对于标准库少了一些NewTimer和NewTicker的调用。如果对精度有要求,比如10ms或者1ms.这种。定时任务量大可以用,因为Timer的调用量固定. 否则感觉有点鸡肋。始终没解决linux下time.Timer的高CPU使用

@singchia
Copy link
Owner

singchia commented Sep 1, 2023

@FJSDS 我自己是放在C10K/M的场景使用的,心跳、同步这些,量级会大一些

@singchia singchia self-assigned this Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants