-
Notifications
You must be signed in to change notification settings - Fork 288
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
插件是否存在性能问题? #109
Comments
测试发现通过缓存GenericService能明显提高性能 相关改动为
另外可能的优化方案: |
@roverbeta 还有你的意思是:ReferenceConfigCache.getCache 这个ReferenceConfig缓存没有效果? 实际这个cache和你实现的map cache实际上是差不多的 |
@ningyu1 |
|
@ningyu1 |
是的,我用2.7.4和2.7.7两个版本的插件测试之后发现性能影响确实在这个方法,新版本官方把这个方法挪到其他地方了。 |
插件版本:2.7.4
场景1:使用插件压测和实现JavaSamplerClient压测数据对比,压测相同接口(一个简单的say hi接口),实现JavaSamplerClient的压测方式qps能达1w,使用插件压测qps最高只有1500。
场景2:在不改变插件其他逻辑的情况下,注释掉
![image](https://user-images.githubusercontent.com/37068575/82625743-8dc70500-9c18-11ea-9697-72f7d72ed3c7.png)
io.github.ningyu.jmeter.plugin.dubbo.sample.DubboSample#callDubbo
方法中的genericService.$invoke(methodName, parameterTypes, parameterValues);
,并将res.sampleStart();提到该方法的首行。压测结果为The text was updated successfully, but these errors were encountered: