11"""
2- SweepAnalyzer — build plots from a sweep over *mean concurrent users *.
2+ SweepAnalyzer — build plots from a sweep over *mean rps *.
33
44Global
55------
@@ -70,7 +70,7 @@ class ServerPoint:
7070
7171class SweepAnalyzer :
7272 """
73- Build plots from a sweep over *mean concurrent users *.
73+ Build plots from a sweep over *mean rps *.
7474
7575 Input
7676 -----
@@ -246,39 +246,39 @@ def _collect_servers(self) -> None:
246246 # ──────────────────────────────────────────────────────────────────
247247
248248 def plot_global_throughput (self , ax : Axes ) -> None :
249- """Plot mean throughput (RPS) vs. mean concurrent users ."""
249+ """Plot mean throughput (RPS) vs. mean rps ."""
250250 self ._ensure_global_collected ()
251251 pts = self ._global_points
252252 xs = [p .users for p in pts ]
253253 ys = [p .lambda_rps for p in pts ]
254254 ax .plot (xs , ys , marker = "o" )
255- ax .set_title ("Throughput (mean RPS) vs. concurrent users " )
256- ax .set_xlabel ("Mean concurrent users " )
255+ ax .set_title ("Throughput (mean RPS) vs. mean Lambda_rps " )
256+ ax .set_xlabel ("mean rps " )
257257 ax .set_ylabel ("RPS" )
258258 ax .grid (visible = True , alpha = 0.3 )
259259
260260 def plot_global_latency (self , ax : Axes ) -> None :
261- """Plot mean system time (W) vs. mean concurrent users ."""
261+ """Plot mean system time (W) vs. mean rps ."""
262262 self ._ensure_global_collected ()
263263 pts = self ._global_points
264264 xs = [p .users for p in pts ]
265265 ys = [p .W for p in pts ]
266266 ax .plot (xs , ys , marker = "o" )
267- ax .set_title ("Mean system time (W) vs. concurrent users " )
268- ax .set_xlabel ("Mean concurrent users " )
267+ ax .set_title ("Mean system time (W) vs. mean Lambda_rps " )
268+ ax .set_xlabel ("mean rps " )
269269 ax .set_ylabel ("W (seconds)" )
270270 ax .grid (visible = True , alpha = 0.3 )
271271
272272 def plot_global_latency_percentiles (self , ax : Axes ) -> None :
273- """Plot P50, P95, P99 latency vs. mean concurrent users ."""
273+ """Plot P50, P95, P99 latency vs. mean rps ."""
274274 self ._ensure_global_collected ()
275275 pts = self ._global_points
276276 xs = [p .users for p in pts ]
277277 ax .plot (xs , [p .p50 for p in pts ], marker = "o" , label = "P50" )
278278 ax .plot (xs , [p .p95 for p in pts ], marker = "o" , label = "P95" )
279279 ax .plot (xs , [p .p99 for p in pts ], marker = "o" , label = "P99" )
280- ax .set_title ("Latency percentiles vs. concurrent users " )
281- ax .set_xlabel ("Mean concurrent users " )
280+ ax .set_title ("Latency percentiles vs. mean Lambda_rps " )
281+ ax .set_xlabel ("mean rps " )
282282 ax .set_ylabel ("Latency (seconds)" )
283283 ax .legend ()
284284 ax .grid (visible = True , alpha = 0.3 )
@@ -344,8 +344,8 @@ def plot_server_utilization_overlay(
344344 xs = [p .users for p in pts ]
345345 ys = [p .rho for p in pts ]
346346 ax .plot (xs , ys , marker = "o" , label = sid )
347- ax .set_title ("Server utilization (rho) vs. concurrent users " )
348- ax .set_xlabel ("Mean concurrent users " )
347+ ax .set_title ("Server utilization (rho) vs. mean Lambda_rps " )
348+ ax .set_xlabel ("mean rps " )
349349 ax .set_ylabel ("rho" )
350350 if ids :
351351 ax .legend ()
@@ -366,8 +366,8 @@ def plot_server_waiting_time_overlay(
366366 xs = [p .users for p in pts ]
367367 ys = [p .Wq for p in pts ]
368368 ax .plot (xs , ys , marker = "o" , label = sid )
369- ax .set_title ("Server waiting time (Wq) vs. concurrent users " )
370- ax .set_xlabel ("Mean concurrent users " )
369+ ax .set_title ("Server waiting time (Wq) vs. mean Lambda_rps " )
370+ ax .set_xlabel ("mean rps " )
371371 ax .set_ylabel ("Wq (seconds)" )
372372 if ids :
373373 ax .legend ()
@@ -388,8 +388,8 @@ def plot_server_service_rate_overlay(
388388 xs = [p .users for p in pts ]
389389 ys = [p .mu_rps for p in pts ]
390390 ax .plot (xs , ys , marker = "o" , label = sid )
391- ax .set_title ("Server service rate (mu) vs. concurrent users " )
392- ax .set_xlabel ("Mean concurrent users " )
391+ ax .set_title ("Server service rate (mu) vs. mean Lambda_rps " )
392+ ax .set_xlabel ("mean rps " )
393393 ax .set_ylabel ("mu (1/s)" )
394394 if ids :
395395 ax .legend ()
@@ -410,8 +410,8 @@ def plot_server_throughput_overlay(
410410 xs = [p .users for p in pts ]
411411 ys = [p .lambda_rps for p in pts ]
412412 ax .plot (xs , ys , marker = "o" , label = sid )
413- ax .set_title ("Server throughput (lambda) vs. concurrent users " )
414- ax .set_xlabel ("Mean concurrent users " )
413+ ax .set_title ("Server throughput (lambda) vs. mean Lambda_rps " )
414+ ax .set_xlabel ("mean rps " )
415415 ax .set_ylabel ("lambda (1/s)" )
416416 if ids :
417417 ax .legend ()
@@ -428,8 +428,8 @@ def plot_server_latency_overlay(
428428 xs = [p .users for p in pts ]
429429 ys = [p .server_latency_mean_s for p in pts ]
430430 ax .plot (xs , ys , marker = "o" , label = sid )
431- ax .set_title ("Server latency (waiting+service) vs. concurrent users " )
432- ax .set_xlabel ("Mean concurrent users " )
431+ ax .set_title ("Server latency (waiting+service) vs. mean Lambda_rps " )
432+ ax .set_xlabel ("mean rps " )
433433 ax .set_ylabel ("Server latency (s)" )
434434 if ids :
435435 ax .legend ()
0 commit comments