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

Adds integrated benchmarks for proxywasm #2164

Merged
merged 1 commit into from Nov 4, 2022

Conversation

codefromthecrypt
Copy link
Contributor

This adds benchmarks for the only proxy-wasm compatible ABI available in mosn: v1. This is mainly an effort to help folks recognize the performance overhead and also how critical being incompatible is for the ecosystem.

For example, the wasm in the below test only adds one header and nothing else. To do that takes over 60us. In comparison, other wasm handlers can do the same in single digit us even 2 or 3.

Benchmark_BaseCase-16       	    8696	    133748 ns/op
Benchmark_ProxyWasmV1-16    	    5760	    195353 ns/op

cc @Taction @taoyuanyuan @antJack

@codefromthecrypt codefromthecrypt changed the title Adds integrated benchmarks for proxywasam Adds integrated benchmarks for proxywasm Nov 3, 2022
This adds benchmarks for the only proxy-wasm compatible ABI available in
mosn: v1. This is mainly an effort to help folks recognize the
performance overhead and also how critical being incompatible is for the
ecosystem.

For example, the wasm in the below test only adds one header and nothing
else. To do that takes over 60us. In comparison, other wasm handlers can
do the same in 2-3us.
```
Benchmark_BaseCase-16       	    8696	    133748 ns/op
Benchmark_ProxyWasmV1-16    	    5760	    195353 ns/op
```

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Copy link
Contributor

@antJack antJack left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 60.35% // Head: 60.36% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (7a466df) compared to base (f39f9e1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2164      +/-   ##
==========================================
+ Coverage   60.35%   60.36%   +0.01%     
==========================================
  Files         417      417              
  Lines       36583    36583              
==========================================
+ Hits        22081    22085       +4     
+ Misses      12319    12318       -1     
+ Partials     2183     2180       -3     
Impacted Files Coverage Δ
pkg/stream/stream.go 46.66% <0.00%> (-13.34%) ⬇️
pkg/upstream/servicediscovery/dubbod/bootstrap.go 64.58% <0.00%> (-4.17%) ⬇️
pkg/module/http2/server.go 81.70% <0.00%> (-0.08%) ⬇️
pkg/module/http2/transport.go 78.76% <0.00%> (+0.28%) ⬆️
...aulttolerance/regulator/invocation_stat_factory.go 100.00% <0.00%> (+15.00%) ⬆️
...ream/faulttolerance/regulator/default_regulator.go 100.00% <0.00%> (+18.18%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@taoyuanyuan taoyuanyuan left a comment

Choose a reason for hiding this comment

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

LGTM

@taoyuanyuan taoyuanyuan merged commit 3be2a2a into mosn:master Nov 4, 2022
@taoyuanyuan taoyuanyuan added this to the 1.3.0 milestone Nov 4, 2022
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.

None yet

3 participants