LevelDB中使用 ./db_bench 测试
结果中出现两个readseq结果,这两个结果有什么区别呢?
哪个结果才能真正的反映顺序读的性能。
谢谢!
LevelDB中使用 ./db_bench 测试
结果中出现两个readseq结果,这两个结果有什么区别呢?
哪个结果才能真正的反映顺序读的性能。
谢谢!
名字 说明
fillseq 顺序写(按key的顺序),N条,异步模式
fillsync 随机写(不按key的顺序),N/100条,同步模式
fillrandom 随机写(不按key的顺序),N条,异步模式
overwrite 改写N条,随机序,异步模式
readrandom 随机读N次
readrandom(紧接着,第二次) 无意义
readseq 顺序读N次
readreverse 按key的逆序读N次
compact 压缩整个数据库。deleted and overwritten versions are discarded,and the data is rearranged to reduce the cost of operations
readrandom 随机读N次
readseq 顺序读N次
readreverse 按key的逆序读N次
fill100K 随机写(不按key的顺序),N/1000条,每条长度100K,异步模式
crc32c 对4K大小的数据反复做CRC32
snappycomp 用snappy做压缩
snappyuncomp 用snappy解压缩
acquireload load N*1000次