📝 Add benchmark into readme

This commit is contained in:
LittleSheep 2023-11-18 01:50:16 +08:00
parent cd66946020
commit 379999e262
2 changed files with 36 additions and 11 deletions

View File

@ -14,4 +14,38 @@ A blazing fast reverse proxy with a lot of shining features.
> Deleted item means under construction, check out our roadmap! > Deleted item means under construction, check out our roadmap!
### How fast is it? ### How fast is it?
Static Files Hosting
```shell
go-wrk -t=8 -c=100 -n=10000 "http://localhost"
```
```text
==========================BENCHMARK==========================
URL: http://localhost
Used Connections: 100
Used Threads: 8
Total number of calls: 10000
===========================TIMINGS===========================
Total time passed: 8.96s
Avg time per request: 88.63ms
Requests per second: 1115.70
Median time per request: 85.76ms
99th percentile time: 144.05ms
Slowest time for request: 237.00ms
=============================DATA=============================
Total response body sizes: 5431892
Avg response body per request: 543.19 Byte
Transfer rate per second: 606034.29 Byte/s (0.61 MByte/s)
==========================RESPONSES==========================
20X Responses: 277 (2.77%)
30X Responses: 0 (0.00%)
40X Responses: 9723 (97.23%)
50X Responses: 0 (0.00%)
Errors: 0 (0.00%)
```

View File

@ -6,7 +6,7 @@
"localhost" "localhost"
], ],
"path": [ "path": [
"/site1" "/"
] ]
} }
], ],
@ -15,14 +15,5 @@
"name": "Example Upstream", "name": "Example Upstream",
"uri": "file:///site" "uri": "file:///site"
} }
],
"transformers": [
{
"type": "replacePath",
"options": {
"pattern": "/site1",
"value": "/"
}
}
] ]
} }