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

add benchmark of workload #316

Merged
merged 5 commits into from
May 11, 2024
Merged

Conversation

LiZhenCheng9527
Copy link
Collaborator

What type of PR is this?

What this PR does / why we need it:
add benchmark of workload
Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
@LiZhenCheng9527
Copy link
Collaborator Author

LiZhenCheng9527 commented May 10, 2024

goos: linux
goarch: amd64
pkg: kmesh.net/kmesh/pkg/controller
cpu: Intel(R) Xeon(R) Gold 6278C CPU @ 2.60GHz
BenchmarkHandleDataWithService-4   	  141820	      8246 ns/op
PASS
ok  	kmesh.net/kmesh/pkg/controller	1.483s

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
@LiZhenCheng9527
Copy link
Collaborator Author

go test -bench . -benchtime 100x
goos: linux
goarch: amd64
pkg: kmesh.net/kmesh/pkg/controller/workload
cpu: Intel(R) Xeon(R) Gold 6278C CPU @ 2.60GHz
BenchmarkHandleDataWithService-4   	     100	     12300 ns/op
PASS
ok  	kmesh.net/kmesh/pkg/controller/workload	0.124s

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hzxuzhonghu
Copy link
Member

/lgtm

@kmesh-bot kmesh-bot added the lgtm label May 11, 2024
@kmesh-bot kmesh-bot merged commit 80e0261 into kmesh-net:main May 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants