Simple implementation REST API for Fiber with GORM
- Use benchmarck tool in route /dogs
autocannon http://localhost:3000/dogs
- Populate database with 10 records
curl --location --request GET 'localhost:3000/dogs' \
--header 'Content-Type: application/json' \
--data '{
"name": "Ralph",
"breed":"Pastor",
"age": 12,
"isGoodBoy":true
}'
References: