https://github.com/kadukeitor/db-benchmarking
Simple database benchmarking tool
https://github.com/kadukeitor/db-benchmarking
Last synced: about 1 year ago
JSON representation
Simple database benchmarking tool
- Host: GitHub
- URL: https://github.com/kadukeitor/db-benchmarking
- Owner: kadukeitor
- Created: 2017-01-04T16:08:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T14:50:07.000Z (over 9 years ago)
- Last Synced: 2025-03-24T13:43:51.981Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 194 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DB Benchmarking
Simple database benchmarking tool.

## Install
- `git clone https://github.com/kadukeitor/db-benchmarking.git`
- `cd db-benchmarking`
- `npm install`s
## Configuration
Copy the file `config/.json.dist` to `config/.json` and set your params.
## How to Use
`
./cli.js -w -d
`
### Operations
- schema
- write
- read
- count
- remove
- drop
### Sources
- mongodb
- cassandra
- sqlite
- mysql
- redis
### Options
- `-w` workers (optional)
- `-d` documents (optional)
### Examples
We use the source mongodb as example in all the operations
#### Write
Write -d documents by each -w worker on the table/collection
`
./cli.js write mongodb -w 5 -d 1000
`
#### Read
Read -d documents by each -w worker on the table/collection
`
./cli.js read mongodb -d 1000
`
#### Count
Count the number of documents/rows on the table/collection
`
./cli.js count mongodb
`
#### Remove
Remove all documents/rows on the table/collection
`
./cli.js remove mongodb
`
#### Schema
Create the table/collection schema
`
./cli.js schema mongodb
`
#### Remove
Drop the table/collection
`
./cli.js drop mongodb
`