chore: update SETUP.md

This commit is contained in:
sjdonado
2025-03-17 09:52:22 +01:00
parent 6bd0d195bf
commit 006d99a9e7
2 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
Lightweight URL shortener service with minimal resource requirements. Average memory consumption is under **20MiB** and single CPU core consumption under 30%.
bit is highly performant, achieving maximum **15.3K RPS** with a minimum latency of 48.89ms for 100K requests using 100 connections. For detailed benchmark results, see [benchmark](docs/SETUP.md#benchmark).
bit is highly performant, achieving maximum **25K RPS** with a minimum latency of 64ms for 100K requests using 100 connections. For detailed benchmark results, see [benchmark](docs/SETUP.md#benchmark).
Images available on [Docker Hub](https://hub.docker.com/r/sjdonado/bit/tags).
+14 -14
View File
@@ -114,15 +114,15 @@ INFO[0077] done
> ./benchmark.sh
Setting up...
[+] Running 3/3
✔ Network bit_default Created 0.0s
✔ Volume "bit_sqlite_data" Created 0.0s
✔ Container bit Started 0.1s
Captured API Key: ZG0GBlQJxcpgPxbb62kDCw
✔ Network bit_default Created 0.0s
✔ Volume "bit_sqlite_data" Created 0.0s
✔ Container bit Started 0.1s
Captured API Key: Hs35FsYvUqF0dGf1IgkExA
Waiting for the application to be ready...
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json
Date: Mon, 17 Mar 2025 06:43:23 GMT
Date: Mon, 17 Mar 2025 08:40:58 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: Content-Type, Accept, Origin, X-Api-Key
@@ -132,24 +132,24 @@ Starting resource usage monitoring...
Creating 10000 short links with 100 concurrent requests...
Link creation complete: 10000 links created using httpbin's anything endpoint.
Fetching all created links from /api/links...
Selected link for benchmarking: http://localhost:4000/MQ1Xeg
Selected link for benchmarking: http://localhost:4000/DYr5dA
Starting benchmark with Bombardier...
Bombarding http://localhost:4000/MQ1Xeg with 100000 request(s) using 100 connection(s)
100000 / 100000 [=================================================================================================================================================================] 100.00% 1423/s 1m10s
Bombarding http://localhost:4000/DYr5dA with 100000 request(s) using 100 connection(s)
100000 / 100000 [=================================================================================================================================================================] 100.00% 1424/s 1m10s
Done!
Statistics Avg Stdev Max
Reqs/sec 1443.47 1805.42 15309.79
Latency 70.15ms 21.26ms 731.29ms
Reqs/sec 1443.96 1831.82 25297.17
Latency 70.19ms 5.30ms 105.83ms
HTTP codes:
1xx - 0, 2xx - 0, 3xx - 100000, 4xx - 0, 5xx - 0
others - 0
Throughput: 612.41KB/s
Throughput: 612.06KB/s
Benchmark completed.
Analyzing resource usage...
**** Results ****
Average CPU Usage: 40.05%
Average Memory Usage: 40.76 MiB
./benchmark.sh: line 135: 64821 Terminated: 15 monitor_resource_usage
Average CPU Usage: 39.47%
Average Memory Usage: 37.02 MiB
./benchmark.sh: line 135: 44732 Terminated: 15 monitor_resource_usage
[+] Running 2/2
✔ Container bit Removed 10.1s
✔ Network bit_default Removed 0.0s