- Ensure you have Docker installed.
- Open a command prompt and run
docker-compose up
. This will:- Download and run PostgreSQL
- Setup a default database with some tables inside Postgres
- Insert some default data
- Run the
go
app at http://localhost:5000 - Run the
C#
app at http://localhost:5001
- Download and run PostgreSQL
- Ensure you have Go installed.
- Install Bombardier -
go get -u github.com/codesenberg/bombardier
- The following Bombardier commands give interesting results:
bombardier -c 100 -n 100000 -l http://localhost:5000/person/1
- Get a Person
from the db
bombardier -c 10 -n 10000 -l http://localhost:5000/person/1
- Get a Person
from the db
bombardier -c 1000 -n 100000 -l http://localhost:5000/test/json/simple
- Get a simple JSON object
bombardier -c 1000 -n 100000 -l http://localhost:5000/test/json/complex
- Get a complex JSON object
bombardier -c 100 -n 10000 -l --method=PUT --body-file=./test-person.json --header="Content-Type: application/json" http://localhost:5000/person
- Save a person to the db
Testing http://localhost:5000 will test against the go
application.
Testing http://localhost:5001 will test against the C#
application.