refactor: link controller buffered channel to hold click data
This commit is contained in:
+30
-51
@@ -126,64 +126,43 @@ Waiting for the application to be ready...
|
||||
Seeding the database...
|
||||
Checking seed results...
|
||||
Fetching all created links from /api/links...
|
||||
Selected link for benchmarking: http://localhost:4000/slug6268
|
||||
Selected link for benchmarking: http://localhost:4000/slug8558
|
||||
Starting benchmark with Bombardier...
|
||||
Bombarding http://localhost:4000/slug6268 for 59s using 30 connection(s)
|
||||
[==============================================================================================] 59s
|
||||
Bombarding http://localhost:4000/slug8558 with 100000 request(s) using 125 connection(s)
|
||||
100000 / 100000 [==============================================================] 100.00% 7126/s 14s
|
||||
Done!
|
||||
Statistics Avg Stdev Max
|
||||
Reqs/sec 1113.53 384.47 1642.40
|
||||
Latency 27.13ms 6.87ms 246.27ms
|
||||
Reqs/sec 7233.84 1873.69 13200.45
|
||||
Latency 17.31ms 1.44ms 44.42ms
|
||||
Latency Distribution
|
||||
50% 25.13ms
|
||||
75% 27.60ms
|
||||
90% 32.34ms
|
||||
95% 36.06ms
|
||||
99% 50.99ms
|
||||
50% 17.11ms
|
||||
75% 18.36ms
|
||||
90% 19.75ms
|
||||
95% 20.64ms
|
||||
99% 22.72ms
|
||||
HTTP codes:
|
||||
1xx - 0, 2xx - 0, 3xx - 65268, 4xx - 0, 5xx - 0
|
||||
1xx - 0, 2xx - 0, 3xx - 100000, 4xx - 0, 5xx - 0
|
||||
others - 0
|
||||
Throughput: 308.80KB/s
|
||||
Throughput: 1.97MB/s
|
||||
Benchmark completed successfully.
|
||||
Analyzing resource usage...
|
||||
**** Resource Usage Statistics ****
|
||||
Measurements: 31
|
||||
Average CPU Usage: 30.49%
|
||||
Average Memory Usage: 64.82 MiB
|
||||
Peak CPU Usage: 34.12%
|
||||
Peak Memory Usage: 65.45 MiB
|
||||
Cleanup completed. Resource usage data saved in resource_usage.txt
|
||||
~/p/bit> cat resource_usage.txt
|
||||
Timestamp CPU(%) Memory(MiB)
|
||||
1742499555 0.0 61.76
|
||||
1742499557 0.01 61.76
|
||||
1742499559 26.73 65.13
|
||||
1742499561 32.59 65.16
|
||||
1742499563 32.66 65.42
|
||||
1742499565 33.32 65.45
|
||||
1742499567 31.84 65.2
|
||||
1742499569 33.01 65.4
|
||||
1742499571 32.56 65.23
|
||||
1742499573 32.86 65.23
|
||||
1742499575 33.31 65.24
|
||||
1742499577 33.0 65.06
|
||||
1742499579 32.98 65.07
|
||||
1742499581 33.42 64.93
|
||||
1742499583 32.98 64.91
|
||||
1742499585 32.85 64.93
|
||||
1742499587 33.39 64.94
|
||||
1742499589 32.88 64.95
|
||||
1742499591 31.9 64.95
|
||||
1742499593 34.12 65.21
|
||||
1742499595 32.85 64.94
|
||||
1742499597 32.95 64.89
|
||||
1742499599 33.88 64.9
|
||||
1742499601 31.93 64.89
|
||||
1742499603 33.67 64.89
|
||||
1742499605 32.62 64.89
|
||||
1742499607 31.12 65.01
|
||||
1742499609 31.04 64.77
|
||||
1742499611 33.95 64.77
|
||||
1742499613 32.3 64.68
|
||||
1742499615 32.52 64.94
|
||||
1742732558 0.04 50.07
|
||||
1742732560 0.03 50.07
|
||||
1742732562 88.02 79.78
|
||||
1742732564 86.57 79.02
|
||||
1742732566 89.27 79.3
|
||||
1742732568 87.5 79.09
|
||||
1742732570 88.88 79.12
|
||||
1742732572 88.35 79.41
|
||||
1742732574 88.88 79.44
|
||||
1742732576 0.02 78.53
|
||||
|
||||
**** Resource Usage Statistics ****
|
||||
Measurements: 10
|
||||
Average CPU Usage: 61.76%
|
||||
Average Memory Usage: 73.38 MiB
|
||||
Peak CPU Usage: 89.27%
|
||||
Peak Memory Usage: 79.78 MiB
|
||||
Cleanup completed. Resource usage data saved in resource_usage.txt
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user