Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 859 Bytes

README.md

File metadata and controls

43 lines (37 loc) · 859 Bytes

benchmark

Benchmark database technologies. See results here.

Using this project

  1. REQUIRED: Setup the target database. Instructions below.
  2. go run main.go

Setup the target database locally

Redisgraph

docker run -p 6379:6379 -it --rm redislabs/redisgraph

PostgresSQL

https://www.postgresql.org/

  1. 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
  1. Login to the container
$ docker exec -it dev-postgres bash
# psql -h localhost -U postgres
  1. Create a database named benchmark
postgres=# CREATE DATABASE benchmark;
  1. Use database
\c benchmark