Urko 7ad3a9969f | ||
---|---|---|
benchmark | ||
cmd | ||
config | ||
internal | ||
pkg | ||
.gitignore | ||
Dockerfile | ||
Makefile | ||
README.md | ||
docker-compose.yaml | ||
go.mod | ||
go.sum |
README.md
Requirements
run docker-compose --env-file ./.env up
to init your container
Tests
ETL
To see results you only have to run
make run_etl
http server
To see results you only have to run
make run_etl
Benchmark
http comparision
Start your go http server
go run cmd/server/main.go
Start your nest server
cd ~/nest-project-path
npm start
Then run benchmark
make benchmark_server
other tests
To test different tests done on http server response you can do this way:
First start your http server
make run_server
Then play running different tests:
IMPORTANT Please do mantain your machine without extra running processes
make benchmark_go_1000req_15s
then try
make benchmark_go_1000req
Now try nest server, remember to first startup your nest
make benchmark_nest_1000req_15s
make benchmark_nest_1000req