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

测了一下发现CGI相关的性能问题 #182

Open
f38905c2-2c1b-4352-b86e-337d11f2db86 opened this issue Jul 7, 2019 · 1 comment
Open

Comments

@f38905c2-2c1b-4352-b86e-337d11f2db86
Copy link

f38905c2-2c1b-4352-b86e-337d11f2db86 commented Jul 7, 2019

现有的CGI Provider里面会为每个请求申请一个6553500的buffer,如图:
mem
火焰图:
cpu

改了一下他的代码修改之前100并发10000请求需要27.098820666s
修改之后需要18.084613282s
如果我的benchmark代码没错的话变化还挺明显的

修改之后的火焰图:
after_cpu

没有那个巨大的带缓存的Writter了

发一个PR在这里
#181

@idevz
Copy link
Member

idevz commented Jul 9, 2019

赞 :)

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