kitex icon indicating copy to clipboard operation
kitex copied to clipboard

perf(client): new rpctimeout impl

Open xiaost opened this issue 1 year ago • 0 comments

goos: darwin
goarch: arm64
pkg: github.com/cloudwego/kitex/client
                │  ./old.txt   │             ./new.txt              │
                │    sec/op    │   sec/op     vs base               │
RPCTimeoutMW-12   1167.5n ± 1%   797.1n ± 1%  -31.73% (p=0.002 n=6)

                │ ./old.txt  │             ./new.txt             │
                │    B/op    │    B/op     vs base               │
RPCTimeoutMW-12   560.0 ± 0%   176.0 ± 0%  -68.57% (p=0.002 n=6)

                │ ./old.txt  │             ./new.txt             │
                │ allocs/op  │ allocs/op   vs base               │
RPCTimeoutMW-12   9.000 ± 0%   2.000 ± 0%  -77.78% (p=0.002 n=6)

What type of PR is this?

perf

Check the PR title.

  • [ ] This PR title match the format: <type>(optional scope): <description>
  • [ ] The description of this PR title is user-oriented and clear enough for others to understand.
  • [ ] Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

重构 client rpctimeout 的实现

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

xiaost avatar Oct 16 '24 10:10 xiaost