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 to test parallel perf #9

Open
wants to merge 1 commit into
base: fix/6-remove-recursion
Choose a base branch
from

Conversation

lanzafame
Copy link
Contributor

$ go test -v -run none -bench . -benchmem -benchtime 10s                                                                                      1m 40s 916ms
goos: linux
goarch: amd64
pkg: github.com/ipfs/go-ds-crdt
BenchmarkSync/1-8 	      10	1808648650 ns/op	992140285 B/op	 1747320 allocs/op
BenchmarkSync/2-8 	      10	1788246614 ns/op	992006935 B/op	 1745158 allocs/op
BenchmarkSync/3-8 	      10	1792477519 ns/op	992163355 B/op	 1748719 allocs/op
BenchmarkSync/4-8 	      10	1814152113 ns/op	992217028 B/op	 1749633 allocs/op
BenchmarkSync/5-8 	      10	1787339944 ns/op	992124135 B/op	 1747595 allocs/op
BenchmarkSync/10-8         	      10	1779437564 ns/op	992187234 B/op	 1749065 allocs/op
BenchmarkSync/15-8         	      10	1796560275 ns/op	992003196 B/op	 1745018 allocs/op
BenchmarkSync/30-8         	      10	1809471334 ns/op	992041555 B/op	 1745974 allocs/op
BenchmarkSync/50-8         	      10	1808551099 ns/op	992190058 B/op	 1749196 allocs/op
PASS
ok  	github.com/ipfs/go-ds-crdt	187.641s

@lanzafame lanzafame requested a review from hsanjuan May 15, 2019 04:42
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