benchmark timescaledb using a csv as input for the queries. output will appear on console as json
- Run
docker-compose build
- To start timescale run
docker-compose up timescaledb
- To load the time series data, In a new terminal run
docker-compose exec timescaledb psql -U postgres -h localhost -f /tmp/db/cpu_usage.sql
- to see the process run automatically
docker-compose up
- run
docker-compose up | grep benchmark_1
- leave timescale running
To run the tests we can use the make file, assuming you have go installed
- run
make unit_test
to run the unit tests only - run
make integration
to run the full integration and view the output - run
make run
ormake debug
to run the benchmark in debug or non debug mode - run
make build
then./benchmark
for default or./benchmark --help
for args