Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghkdqhrbals/pref-cloud
Http benchmark with Google cloud run
https://github.com/ghkdqhrbals/pref-cloud
Last synced: about 2 months ago
JSON representation
Http benchmark with Google cloud run
- Host: GitHub
- URL: https://github.com/ghkdqhrbals/pref-cloud
- Owner: ghkdqhrbals
- License: apache-2.0
- Created: 2024-02-27T03:02:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T12:33:46.000Z (10 months ago)
- Last Synced: 2024-02-27T13:39:00.535Z (10 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
http benchmark server
=========
This is a simple http server that can be used to benchmark http clients.## Usage
```bash
$ go run .
```this will start a server on port 8080. You can change the port by setting the `PORT` environment variable.
## Example
* Request `POST /test` : This endpoint will return a 200 status code with a response body of `{"status": "ok"}`.
```bash
```json
{
"url":"http://localhost:9001/board",
"method":"POST",
"numUsers":10,
"numReqs":1000
}
```* Response `POST /test` 200
> We serve the response in the following format:```json
{
"ID": 26,
"CreatedAt": "2024-02-27T21:30:21.618101+09:00",
"UpdatedAt": "2024-02-27T21:30:21.618101+09:00",
"DeletedAt": null,
"url": "http://localhost:9001/board",
"method": "POST",
"total_requests": 10000,
"total_errors": 0,
"total_success": 10000,
"StatusCodeCount": {
"200": 10000
},
"total_users": 10,
"total_duration": 1,
"mttfb_average": "28.188ms",
"MTTFBPercentiles": {
"p50": "13.386ms",
"p75": "23.908ms",
"p90": "49.640ms",
"p95": "103.998ms",
"p99": "224.680ms"
},
"tps_average": 5883650.805324704,
"TPSPercentiles": {
"p50": 312,
"p75": 113,
"p90": 54,
"p95": 23,
"p99": 17
}
}
```