This is a seed project to benchmark you database before you decide which one to use.
You can find out more about this topic fom this blog post hodo.dev/posts/post-23-database-benchmark
-
Clone the repo
git clone https://github.com/gabihodoroaga/database-benchmark.git cd database-benchmark
-
Run RediSearch test
# start the redis container docker run -d --name redis-search-2 -p 6379:6379 redislabs/redisearch:2.0.0 # star the test go run . -redis # clean up docker rm --force redis-search-2
-
Run PostgreSQL test
# start postgres container docker run --name postgres-test -e POSTGRES_PASSWORD=example -e POSTGRES_USER=postgres -d -p 5432:5432 postgres # create the database docker exec -it postgres-test psql -U postgres -c 'create database test;' # run the test go run . -postgres # clean up docker rm --force postgres-test
-
Run Reindexer test
# start the reindexer container docker run --name reindexer-test -p9088:9088 -p6534:6534 -d reindexer/reindexer # star the test go run . --reindexer # clean up docker rm --force reindexer-test
Gabriel Hodoroaga (hodo.dev)