Using my own labtop to test the result might not be 100% accuracy
This test use 30 virtual user that always send a request into a server for 3 minutes
- Apple M1
- 8 GB Memory
- 512 MB Disk
- K6
- Grafana
- Golang
Topic | Echo | Fiber | Winner |
---|---|---|---|
Request Make | 3352 | 3677 | Fiber |
P95 RESPONSE TIME | 2 245ms | 1 733ms | Fiber |
brew install k6
- Source code can be found in repo
In this test I use 30 virtual user send request for 3 minutes long
export const options = {
vus: 30,
duration: '3m',
ext: {
loadimpact: {
projectID: XXXXX,
name: 'Test Fiber (20/01/2024)'
}
}
};
k6 login cloud --token xxxxxxxxxxxxx
In both echo and fiber use the same command to start a server
go run main.go
Running script
k6 cloud script/fiber.js
k6 cloud script/echo.js