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

KVS alternative #426

Closed
watermint opened this issue Aug 27, 2020 · 1 comment
Closed

KVS alternative #426

watermint opened this issue Aug 27, 2020 · 1 comment

Comments

@watermint
Copy link
Owner

The latest Badger release is not able to compile in 32bit binary.
And Badger sometime cause an error in 32bit environment. That's probably the project is not focused on those environment.

Alternative:

@watermint
Copy link
Owner Author

Micro benchmark

goos: darwin
goarch: amd64
pkg: github.com/watermint/toolbox/essentials/kvs/kv_test
BenchmarkMemoryFootprintBadger
INFO	Benchmark	{"N": 1}
INFO	Benchmark	{"N": 100}
INFO	Benchmark	{"N": 10000}
INFO	Benchmark	{"N": 15366}
BenchmarkMemoryFootprintBadger-20     	   15366	   4620177 ns/op	 2889083 B/op	     948 allocs/op
BenchmarkMemoryFootprintBitcask
INFO	Benchmark	{"N": 1}
INFO	Benchmark	{"N": 100}
INFO	Benchmark	{"N": 5770}
BenchmarkMemoryFootprintBitcask-20    	    5770	  12240702 ns/op	 2234496 B/op	    1030 allocs/op
PASS

Process finished with exit code 0

Badger has better performance but Bitcask is also acceptable in performance point of view.

watermint added a commit that referenced this issue Aug 28, 2020
@watermint watermint mentioned this issue Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant