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

Improve/delte handle loop #61

Merged

Conversation

georgehao
Copy link

What this PR does:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


benchmark/client/main.go Outdated Show resolved Hide resolved
_, _, err := Session.WritePkg(msg, WritePkgTimeout)
if err != nil {
log.Printf("Err:session.WritePkg(session{%s}, error{%v}", Session.Stat(), err)
Session.Close()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it create new session if error happens?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得这里不应该关闭才对。

benchmark/client/main.go Show resolved Hide resolved
@watermelo
Copy link
Member

@georgehao pls fix ci.

@georgehao
Copy link
Author

压测表现:

系统:CentOS Linux release 7.5.1804 (Core)
CPU:8核
内存:16G
类型:腾讯云虚机

压测参数解释

./client -ip xx:8090 -c 100 -n 100000

-c : 启动客户端数量
-n :每个客户端发送字符串的次数

旧版本getty

getty: v1.4.3
gost: v1.10.1

image
image
image

新版本getty

image
image
image

@codecov-commenter
Copy link

Codecov Report

Merging #61 (d03e90c) into improve/delte-handleLoop (37ba965) will not change coverage.
The diff coverage is 75.00%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           improve/delte-handleLoop      #61   +/-   ##
=========================================================
  Coverage                     66.74%   66.74%           
=========================================================
  Files                             8        8           
  Lines                          1260     1260           
=========================================================
  Hits                            841      841           
  Misses                          326      326           
  Partials                         93       93           
Impacted Files Coverage Δ
session.go 68.01% <50.00%> (ø)
connection.go 78.22% <100.00%> (ø)
server.go 65.71% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37ba965...d03e90c. Read the comment docs.

Copy link

@zhaoyunxing92 zhaoyunxing92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved these changes

@AlexStocks AlexStocks merged commit 4a05931 into apache:improve/delte-handleLoop Jun 27, 2021
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

Successfully merging this pull request may close these issues.

8 participants