Simple database benchmarking tool.
git clone https://github.com/kadukeitor/db-benchmarking.gitcd db-benchmarkingnpm installs
Copy the file config/<source>.json.dist to config/<source>.json and set your params.
./cli.js <operation> <source> -w <workers> -d <documents>
- schema
- write
- read
- count
- remove
- drop
- mongodb
- cassandra
- sqlite
- mysql
- redis
-wworkers (optional)-ddocuments (optional)
We use the source mongodb as example in all the operations
Write -d documents by each -w worker on the table/collection
./cli.js write mongodb -w 5 -d 1000
Read -d documents by each -w worker on the table/collection
./cli.js read mongodb -d 1000
Count the number of documents/rows on the table/collection
./cli.js count mongodb
Remove all documents/rows on the table/collection
./cli.js remove mongodb
Create the table/collection schema
./cli.js schema mongodb
Drop the table/collection
./cli.js drop mongodb
