From b3dbd3884a26536d668bf6289a5801abaed58ff7 Mon Sep 17 00:00:00 2001 From: oDinZu WenKi Date: Thu, 18 Jan 2024 19:28:37 -0500 Subject: [PATCH] add benchmarks draft --- README.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index af97a81..77e0ca8 100644 --- a/README.md +++ b/README.md @@ -26,19 +26,62 @@ 4. Run the app with `./DrogonCMS` ## Features and Strengths -- 2x-3x Faster than NginX or WordPress; possibly, the fastest website architecture known and better than Strapi +- 2x-3x Faster than NginX or WordPress and Strapi - Built on CMake/C/C++/GTK4/Drogon - Optional Built-in Proxy/Local Caching Support -- Built-in website Builder +- Built-in Website Builder - Optional Community Support/Plugins -- Built-in website Preview/Drafts -- Built-in website WYSIWYG +- Built-in Website Preview/Drafts +- Built-in WYSIWYG Editor - Built-in image Gallery - Built on Freedom Software -- Blazing fast website architecture -- Headless CMS Ready for site generators -- Lightweight security with _serverless_ architecture; all work is done locally via your computer or via a remote server with CI. All public facing data is public only and a image of the original data from the local postgresql database, not including server backups. e.g. a copy of the original data is created at the edge or public WWW layer, plus optional proxy securities and caching. -- Excellent documentation +- Blazing Fast Website Architecture +- Headless CMS Ready for Site Generators +- Lightweight Security with _serverless_ architecture, plus optional proxy securities and caching. +- Excellent Documentation + +## Benchmarks + +### Drogon Server Only with 2 IO threads +``` +wrk -c200 -d5 -t2 http://localhost:8848/hello +Running 5s test @ http://localhost:8848/hello + 2 threads and 200 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 1.91ms 689.56us 7.56ms 72.86% + Req/Sec 52.72k 3.50k 63.00k 71.00% + 524174 requests in 5.00s, 91.48MB read +Requests/sec: 104741.94 +Transfer/sec: 18.28MB +``` + +### Drogon Server + Drogon Proxy with 2 IO threads +``` +wrk -c200 -d5 -t2 http://localhost:8088/hello +Running 5s test @ http://localhost:8088/hello + 2 threads and 200 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 3.95ms 0.94ms 8.80ms 67.84% + Req/Sec 25.39k 3.15k 29.20k 84.00% + 252520 requests in 5.00s, 44.07MB read +Requests/sec: 50465.86 +Transfer/sec: 8.81MB +``` + +### Drogon Server + NginX Proxy with 2 IO threads +``` +wrk -c200 -d5 -t2 http://localhost:8080/hello +Running 5s test @ http://localhost:8080/hello + 2 threads and 200 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 24.56ms 138.63ms 1.96s 96.95% + Req/Sec 18.80k 2.73k 26.83k 86.27% + 190708 requests in 5.10s, 34.21MB read + Socket errors: connect 0, read 11, write 0, timeout 51 + Non-2xx or 3xx responses: 166 +Requests/sec: 37372.18 +Transfer/sec: 6.70MB +``` ## Development & Contributing -- 2.25.1