- First of all(of course after clone this repo) build your image
docker build -t benchmark:v1 .
- Then start container
docker run --rm -d --add-host=benchmark.test:127.0.0.1 --name go_benchmark benchmark:v1
- Test it
docker exec -it go_benchmark ./benchmark -u https://benchmark.test/bench -c 100 -n 100000
- Ah or even easier, only in one step
make bench
-
That`s all. Bye :-)
5.1) P.S. Have a nice day!