Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

performance issue or wrong benchmark? #36

Open
vtolstov opened this issue Jan 2, 2018 · 2 comments
Open

performance issue or wrong benchmark? #36

vtolstov opened this issue Jan 2, 2018 · 2 comments

Comments

@vtolstov
Copy link

vtolstov commented Jan 2, 2018

I'm test github.com/syndtr/goleveldb/leveldb and github.com/cznic/kv
https://play.golang.org/p/EMAWeQWCdsY

go1.10beta1 test -bench .
goos: linux
goarch: amd64
pkg: sdstack.com/storage/storage/test/tt
BenchmarkLevelDB-16     2000000000               0.09 ns/op     11858927.40 MB/s
BenchmarkKV-16          2000000000               0.36 ns/op     2845198.15 MB/s
@vtolstov
Copy link
Author

vtolstov commented Jan 2, 2018

What i can do to speedup cznic/kv ?
P.S. /run/user/1000/db tmpfs on server

@cznic
Copy link
Owner

cznic commented Jan 10, 2018

Sorry for the delay, I'm somehow losing track of Github issues.

The benchmark results seem fishy to me, but I haven't studied the benchmark code.

What i can do to speedup cznic/kv ?

I'm afraid there's not much to do. The design of the low-level internals is probably one of the the most limiting factors.

FTR: I'm very slowly putting together pieces for a new, hopefully faster key/value database in the db and file packages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants