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

Initial benchmarks of wasm contracts compared to sdk modules #638

Merged
merged 8 commits into from
Oct 8, 2021

Conversation

ethanfrey
Copy link
Member

Starts on #635

Get some initial data points

@codecov
Copy link

codecov bot commented Oct 8, 2021

Codecov Report

Merging #638 (13aebec) into master (dcb0425) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #638      +/-   ##
==========================================
+ Coverage   60.21%   60.24%   +0.03%     
==========================================
  Files          48       48              
  Lines        5313     5313              
==========================================
+ Hits         3199     3201       +2     
+ Misses       1889     1888       -1     
+ Partials      225      224       -1     
Impacted Files Coverage Δ
app/test_helpers.go 0.86% <ø> (ø)
x/wasm/keeper/keeper.go 87.30% <0.00%> (+0.33%) ⬆️

@ethanfrey ethanfrey changed the title Benchmark wasm contracts compared to sdk modules Initial benchmarks of wasm contracts compared to sdk modules Oct 8, 2021
@ethanfrey
Copy link
Member Author

This used memdb and 20tx/block and some unrealistic settings used in the cosmos-sdk benchmarks.

See initial results

goos: linux
goarch: amd64
pkg: github.com/CosmWasm/wasmd/benchmarks
cpu: Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz
BenchmarkNCw20SendTxPerBlock-36     	     832	   1549412 ns/op
BenchmarkNBankSendTxsPerBlock-36    	     943	   1291934 ns/op
PASS
ok  	github.com/CosmWasm/wasmd/benchmarks	3.624s

Cw20Send is about 20% slower than Bank Send (including signature verification, ante handlers, etc)

@ethanfrey ethanfrey merged commit a64479a into master Oct 8, 2021
@ethanfrey ethanfrey deleted the benchmark-app branch October 8, 2021 20:11
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.

1 participant