Simple database benchmarking tool.
git clone https://github.com/kadukeitor/db-benchmarking.git
cd db-benchmarking
npm install
s
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
-w
workers (optional)-d
documents (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