MCPcopy
hub / github.com/benoitc/gunicorn / warmup

Method warmup

benchmarks/dirty_benchmark.py:278–282  ·  view source on GitHub ↗

Warm up the pool with a few requests.

(self, requests: int = 10)

Source from the content-addressed store, hash-verified

276 self._tmpdir = None
277
278 def warmup(self, requests: int = 10):
279 """Warm up the pool with a few requests."""
280 with DirtyClient(self.socket_path, timeout=30.0) as client:
281 for _ in range(requests):
282 client.execute(BENCHMARK_APP, "health")
283
284 def run_benchmark(
285 self,

Callers 5

run_isolated_suiteFunction · 0.95
run_payload_suiteFunction · 0.95
run_quick_testFunction · 0.95
run_config_sweepFunction · 0.95
mainFunction · 0.95

Calls 2

DirtyClientClass · 0.90
executeMethod · 0.45

Tested by

no test coverage detected