Skip to content

Commit 006d99a

Browse files
committed
chore: update SETUP.md
1 parent 6bd0d19 commit 006d99a

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Lightweight URL shortener service with minimal resource requirements. Average memory consumption is under **20MiB** and single CPU core consumption under 30%.
66

7-
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).
7+
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).
88

99
Images available on [Docker Hub](https://hub.docker.com/r/sjdonado/bit/tags).
1010

docs/SETUP.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ INFO[0077] done
114114
> ./benchmark.sh
115115
Setting up...
116116
[+] Running 3/3
117-
✔ Network bit_default Created 0.0s
118-
✔ Volume "bit_sqlite_data" Created 0.0s
119-
✔ Container bit Started 0.1s
120-
Captured API Key: ZG0GBlQJxcpgPxbb62kDCw
117+
✔ Network bit_default Created 0.0s
118+
✔ Volume "bit_sqlite_data" Created 0.0s
119+
✔ Container bit Started 0.1s
120+
Captured API Key: Hs35FsYvUqF0dGf1IgkExA
121121
Waiting for the application to be ready...
122122
HTTP/1.1 200 OK
123123
Connection: keep-alive
124124
Content-Type: application/json
125-
Date: Mon, 17 Mar 2025 06:43:23 GMT
125+
Date: Mon, 17 Mar 2025 08:40:58 GMT
126126
Access-Control-Allow-Origin: *
127127
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
128128
Access-Control-Allow-Headers: Content-Type, Accept, Origin, X-Api-Key
@@ -132,24 +132,24 @@ Starting resource usage monitoring...
132132
Creating 10000 short links with 100 concurrent requests...
133133
Link creation complete: 10000 links created using httpbin's anything endpoint.
134134
Fetching all created links from /api/links...
135-
Selected link for benchmarking: http://localhost:4000/MQ1Xeg
135+
Selected link for benchmarking: http://localhost:4000/DYr5dA
136136
Starting benchmark with Bombardier...
137-
Bombarding http://localhost:4000/MQ1Xeg with 100000 request(s) using 100 connection(s)
138-
100000 / 100000 [=================================================================================================================================================================] 100.00% 1423/s 1m10s
137+
Bombarding http://localhost:4000/DYr5dA with 100000 request(s) using 100 connection(s)
138+
100000 / 100000 [=================================================================================================================================================================] 100.00% 1424/s 1m10s
139139
Done!
140140
Statistics Avg Stdev Max
141-
Reqs/sec 1443.47 1805.42 15309.79
142-
Latency 70.15ms 21.26ms 731.29ms
141+
Reqs/sec 1443.96 1831.82 25297.17
142+
Latency 70.19ms 5.30ms 105.83ms
143143
HTTP codes:
144144
1xx - 0, 2xx - 0, 3xx - 100000, 4xx - 0, 5xx - 0
145145
others - 0
146-
Throughput: 612.41KB/s
146+
Throughput: 612.06KB/s
147147
Benchmark completed.
148148
Analyzing resource usage...
149149
**** Results ****
150-
Average CPU Usage: 40.05%
151-
Average Memory Usage: 40.76 MiB
152-
./benchmark.sh: line 135: 64821 Terminated: 15 monitor_resource_usage
150+
Average CPU Usage: 39.47%
151+
Average Memory Usage: 37.02 MiB
152+
./benchmark.sh: line 135: 44732 Terminated: 15 monitor_resource_usage
153153
[+] Running 2/2
154154
✔ Container bit Removed 10.1s
155155
✔ Network bit_default Removed 0.0s

0 commit comments

Comments
 (0)