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

robfig/cron库有性能问题。 #62

Open
guonaihong opened this issue Nov 9, 2022 · 1 comment
Open

robfig/cron库有性能问题。 #62

guonaihong opened this issue Nov 9, 2022 · 1 comment

Comments

@guonaihong
Copy link

大名鼎鼎的cron库。https://github.com/robfig/cron 有性能问题,
感兴趣。可看下面的链接,在我的测试中,1w个任务。1s更新100个。cron有时候会把cpu占用到90%,而且是空调函数,还没有具体的业务逻辑,而且比较严重的是,一但更新就会有cpu突刺。

https://github.com/antlabs/cronex 这是对cron的改良。
https://github.com/guonaihong/crontest 这是测试代码
cronex.png

感谢作者有这么优秀的项目。为了避免引入robfig/cron 库,生产出现奇怪的cpu飙升,分享最近的压测结论。

@darjun
Copy link
Owner

darjun commented Nov 10, 2022

感性分享👍

@darjun darjun pinned this issue Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants