Benchmarking dskvs
against diskv
on a SSD does not return usable data. For the small sized data-set (10'000 entries) on which the benchmark runs, the SSD serve diskv
from its cache.
To find out the difference in performance between dskvs
and diskv
, I've run the same benchmark again on an EC2 t1.micro
instance. Here are the results:
============= dskvs ========== =========== diskv ==========
BenchmarkPut32B 50000 104995 ns/op 0.30 MB/s 126290 ns/op 0.25 MB/s
BenchmarkPut1KB 50000 103398 ns/op 9.90 MB/s 103049 ns/op 9.94 MB/s
BenchmarkPut4KB 10000 187640 ns/op 21.83 MB/s 101553 ns/op 40.33 MB/s