-
Notifications
You must be signed in to change notification settings - Fork 217
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
关于转发性能 损耗 #15
Comments
Repository owner
deleted a comment from
shuiwazi
Sep 14, 2020
@xiaolei2141576 源码发我邮箱,看一下 |
不好一次,昨天发送的附件太大 邮箱不支持。我的测试基本没有什么改动 直接在您源码上跑起来的,只是将startup里面 关于监控的代码注释了。
其他的可以说没动,第一次测试使用ConfigStoredInMysql,mysql是本机localhost,完全没动其他代码,转发同一个下级路由,都是从 17ms左右增加到50ms左右。
上面帖出来的代码,是我第二次测试,第一次请求将配置数据写入redis,第二次请求直接从redis取配置, 测试结果跟第一次几乎一致
下图是修改ConfigStoredInMysql后的代码,只是加了redis读写
…------------------ 原始邮件 ------------------
发件人: "q315523275/FamilyBucket" <notifications@github.com>;
发送时间: 2020年9月14日(星期一) 中午12:46
收件人: "q315523275/FamilyBucket"<FamilyBucket@noreply.github.com>;
抄送: "钟垒"<2141576@qq.com>;"Mention"<mention@noreply.github.com>;
主题: Re: [q315523275/FamilyBucket] 关于转发性能 损耗 (#15)
@xiaolei2141576 源码发我邮箱,看一下
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我的问题,在debug下会有 30ms左右,release下2-5ms的样子 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
关于转发性能损耗,在您的项目文档中有提到大约是 2ms的损耗。使用gateway项目测试,配置使用redis, 测试转发损耗约30ms,不知道是我使用过的方式不对 还是其他? 使用的跟您一样的的数据,只是修改了 下游路由地址跟ip 走的是内网调用。 直接调用下游接口约 17ms 通过gateway 大约50ms
The text was updated successfully, but these errors were encountered: