Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Latest commit

 

History

History
114 lines (82 loc) · 2.18 KB

File metadata and controls

114 lines (82 loc) · 2.18 KB

Running the benchmarks

Database

Login to the machine where you will run the database.

Clone the project if you haven’t yet:

git clone https://github.com/tsegismont/graphql-server-benchmark.git

Get latest updates and run the database:

cd graphql-server-benchmark/postgres
git pull
./run-postgresql.sh

Backend

Login to the machine where you will run the backend.

Clone the project if you haven’t yet:

git clone https://github.com/tsegismont/graphql-server-benchmark.git

Get latest updates and run the backend:

cd graphql-server-benchmark/backend
git pull
./run-backend.sh

Server

Login to the machine where you will run the server.

Clone the project if you haven’t yet:

git clone https://github.com/tsegismont/graphql-server-benchmark.git

Create a set-env.sh file to configure the Postgres and backend hosts if you haven’t yet:

set-env.sh file contents
#!/bin/bash

export BACKEND_HOST="backend.host.or.ip.address.my.corp.int"
export POSTGRES_HOST="postgres.host.or.ip.address.my.corp.int"

Get latest updates and run the server you want to test:

cd graphql-server-benchmark
git pull
source set-env.sh
./run-server.sh Java/vertx-graphql-java

Injector

Login to the machine where you will run the injector.

Clone the project if you haven’t yet:

git clone https://github.com/tsegismont/graphql-server-benchmark.git

Create a set-env.sh file to configure the server host if you haven’t yet:

set-env.sh file contents
#!/bin/bash

export SERVER_HOST="server.host.or.ip.address.my.corp.int"

Get latest updates and start the injector:

cd graphql-server-benchmark
git pull
source set-env.sh
./run-benchmarks.sh Java/vertx-graphql-java/

The results will be saved in the corresponding server directory. For example:

Java/vertx-graphql-java/author-profile-mobile.lua.report
Java/vertx-graphql-java/all-posts-mobile.lua.report
Java/vertx-graphql-java/all-posts-desktop.lua.report
Java/vertx-graphql-java/author-profile-desktop.lua.report