• D
    Benchmark with both reads and writes at the same time. · 94208a78
    Dhruba Borthakur 提交于
    Summary:
    This patch enables the db_bench benchmark to issue both random reads and random writes at the same time. This options can be trigged via
    ./db_bench --benchmarks=readrandomwriterandom
    
    The default percetage of reads is 90.
    
    One can change the percentage of reads by specifying the --readwritepercent.
    ./db_bench --benchmarks=readrandomwriterandom=50
    
    This is a feature request from Jeffro asking for leveldb performance with a 90:10 read:write ratio.
    
    Test Plan: run on test machine.
    
    Reviewers: heyongqiang
    
    Reviewed By: heyongqiang
    
    Differential Revision: https://reviews.facebook.net/D5067
    94208a78
db_bench.cc 36.1 KB