Gojastin is a server for measuring times between requests: https://timer.miikka.xyz/
The Challenge where i got a inspiration for this project was fun, but validation for solutions seemed far more interesting. So I decided to do my own Proof of Concept. You can read the subject here.
✔️ Live demo
✔️ Uses sync.Pool
✔️ Benchmark testing
✔️ Testing with awesome httptest
✔️ Github actions
✔️ No external libraries
✔️ Useful Makefile
✔️ Azure Pipelines & Docker
✔️ Hosted on DigitalOcean behind nginx
Function | Iterations | ns/op | B/op | allocs/op |
---|---|---|---|---|
without sync.Pool | 5351934 | 218 | 48 | 1 |
with sync.Pool | 15951188 | 75 | 0 | 0 |
More testes by
Build
docker build . -t gojastin
Run
docker run -p 3030:3030 gojastin
Clone:
git clone https://github.com/tuommii/gojastin.git
Test:
make test
Benchmark:
make bench
Build and run:
make
Navigate to http://localhost:3030/
- Make real UI