InfluxDB benchmarks
$ git clone [email protected]:lqmanh/influxdb-benchmarks.git
$ cd influxdb-benchmarks
$ npm i
- First, you need to have InfluxDB and MySQL/MariaDB installed and running in you system.
- Use shell to create a database named
systemusage
for both DBMS.
$ mysql -u root -p
> create database systemusage
$ influx
> create database systemusage
- From project root directory, run
./bin/run
.
$ ./bin/run --help
InfluxDB benchmarks
VERSION
influxdb-benchmarks/0.1.0 linux-x64 node-v11.3.0
USAGE
$ influxdb-benchmarks [COMMAND]
COMMANDS
delete Delete data from InfluxDB or MySQL
get-data Get data sample
help display help for influxdb-benchmarks
insert Insert data into InfluxDB or MySQL
query Query data from InfluxDB or MySQL
Notice: You need to set the environment variable MYSQL_ROOT_PW
to your root user password of MySQL.
$ env MYSQL_ROOT_PW='mypassword'
$ ./bin/run insert mysql -n 1000000 -o