Benchmark的结果:
badger 2019/03/11 18:06:05 INFO: All 0 tables opened in 0sgoos: darwingoarch: amd64pkg: github.com/xujiajun/kvstore-benchBenchmarkBadgerDBPutValue64B-8 10000 112382 ns/op 2374 B/op 74 allocs/opBenchmarkBadgerDBPutValue128B-8 20000 94110 ns/op 2503 B/op 74 allocs/opBenchmarkBadgerDBPutValue256B-8 20000 93480 ns/op 2759 B/op 74 allocs/opBenchmarkBadgerDBPutValue512B-8 10000 101407 ns/op 3271 B/op 74 allocs/opBenchmarkBadgerDBGet-8 1000000 1552 ns/op 416 B/op 9 allocs/opBenchmarkBoltDBPutValue64B-8 10000 203128 ns/op 21231 B/op 62 allocs/opBenchmarkBoltDBPutValue128B-8 5000 229568 ns/op 13716 B/op 64 allocs/opBenchmarkBoltDBPutValue256B-8 10000 196513 ns/op 17974 B/op 64 allocs/opBenchmarkBoltDBPutValue512B-8 10000 199805 ns/op 17064 B/op 64 allocs/opBenchmarkBoltDBGet-8 1000000 1122 ns/op 592 B/op 10 allocs/opBenchmarkNutsDBPutValue64B-8 30000 53614 ns/op 626 B/op 14 allocs/opBenchmarkNutsDBPutValue128B-8 30000 51998 ns/op 664 B/op 13 allocs/opBenchmarkNutsDBPutValue256B-8 30000 53958 ns/op 920 B/op 13 allocs/opBenchmarkNutsDBPutValue512B-8 30000 55787 ns/op 1432 B/op 13 allocs/opBenchmarkNutsDBGet-8 2000000 661 ns/op 88 B/op 3 allocs/opBenchmarkNutsDBGetByHintKey-8 50000 27255 ns/op 840 B/op 16 allocs/opPASSok github.com/xujiajun/kvstore-bench 83.856s