RoadSign/README.md

32 lines
1.7 KiB
Markdown
Raw Normal View History

2023-11-17 16:23:40 +00:00
# 🚦 RoadSign
A blazing fast reverse proxy with a lot of shining features.
## Features
1. Reverse proxy
2. Static file hosting
2023-11-17 17:42:04 +00:00
3. ~~Analytics and Metrics~~
2023-11-17 16:23:40 +00:00
4. Integrate with CI/CD
2023-11-18 06:30:35 +00:00
5. Webhook integration
2023-11-17 17:42:04 +00:00
6. ~~Web management panel~~
2023-11-17 16:23:40 +00:00
7. **Blazing fast ⚡**
2023-11-17 17:42:04 +00:00
> Deleted item means under construction, check out our roadmap!
2023-11-17 17:50:16 +00:00
### How fast is it?
2023-11-24 17:27:37 +00:00
We use roadsign and nginx to host a same static file, and test them with [go-wrk](https://github.com/tsliwowicz/go-wrk).
Here's the result:
| **Software** | Total Requests | Requests per Seconds | Transfer per Seconds | Avg Time | Fastest Time | Slowest Time | Errors Count |
2023-11-30 14:35:46 +00:00
|:---------------------:|:--------------:|:--------------------:|:--------------------:|:-----------:|:------------:|:------------:|:------------:|
| _Nginx_ | 515749 | 4299.58 | 2.05MB | 13.954846ms | 0s (Cached) | 410.6972ms | 0 |
| _RoadSign_ | 8905230 | 76626.70 | 30.98MB | 783.016µs | 28.542µs | 46.773083ms | 0 |
2023-12-10 03:30:31 +00:00
| _RoadSign w/ Prefork_ | 4784308 | 40170.41 | 16.24MB | 1.493636ms | 34.291µs | 8.727666ms | 0 |
2023-11-24 17:27:37 +00:00
As result, roadsign undoubtedly is the fastest one.
2023-11-30 14:35:46 +00:00
It can be found that the prefork feature makes RoadSign more stable in concurrency. We can see this from the **Slowest Time**. At the same time, the **Fastest Time** is affected because reusing ports requires some extra steps to handle load balancing. Enable this feature at your own discretion depending on your use case.
2023-12-10 10:55:13 +00:00
More details can be found at benchmark's [README.md](./test/README.md)