使用YCSB 评测redis性能
YCSB是雅虎推出的可以评测许多主流数据库性能的基准测试,其中包括Redis。
安装YCSB
-
安装java和maven
-
机子已经有了java,所以只用安装maven Ubuntu安装命令为:
sudo apt-get install maven
-
-
安装YCSB
git clone http://github.com/brianfrankcooper/YCSB.git cd YCSB mvn -pl com.yahoo.ycsb:redis-binding -am clean package
必须是gitclone的源码包才能执行mvn 命令。wget或者curl下来包是已经编译好了的无需执行mvn命令。
-
mvn -pl com.yahoo.ycsb:redis-binding -am clean package
报错:[INFO] Scanning for projects... [ERROR] [ERROR] Could not find the selected project in the reactor: com.yahoo.ycsb:redis-binding @ [ERROR] Could not find the selected project in the reactor: com.yahoo.ycsb:redis-binding -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using t