benchmark
Benchmark database technologies. See results here.
Using this project
- REQUIRED: Setup the target database. Instructions below.
go run main.go
Setup the target database locally
Redisgraph
docker run -p 6379:6379 -it --rm redislabs/redisgraph
PostgresSQL
https://www.postgresql.org/
- Start PostgreQSL in a docker container
mkdir -p ${HOME}/postgres/data
docker run -d \
--name dev-postgres \
-e POSTGRES_PASSWORD=dev-pass! \
-v ${HOME}/postgres/data/:/var/lib/postgresql/data \
-p 5432:5432 \
postgres
- Login to the container
$ docker exec -it dev-postgres bash
# psql -h localhost -U postgres
- Create a database named benchmark
postgres=# CREATE DATABASE benchmark;
- Use database
\c benchmark