ycsb版本:0.12.0
mongodb版本:3.4.4/3.6.3
安装步骤参照:https://github.com/brianfrankcooper/YCSB/blob/master/README.md
load数据:
./bin/ycsb load mongodb -s -P workloads/s1 -p mongodb.url=mongodb://test:test@localhost:8001/test>load_test.txt
开始测试
./bin/ycsb run mongodb -s -P workloads/s1 -p mongodb.url=mongodb://test:test@localhost:8001/test>load_test.txt -target 10000
测试参数参考:
https://github.com/brianfrankcooper/YCSB/wiki/Core-Properties#measurement-properties
本文介绍如何使用YCSB工具进行MongoDB数据库的性能测试,包括配置环境、加载数据及运行测试的具体步骤。提供了针对不同版本MongoDB的测试指令,并链接了官方文档以供进一步查阅。

被折叠的 条评论
为什么被折叠?



