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

Method check_dependencies

benchmarks/dirty_benchmark.py:386–395  ·  view source on GitHub ↗

Check for available load testing tools.

(self)

Source from the content-addressed store, hash-verified

384 self._tool = None
385
386 def check_dependencies(self) -> str | None:
387 """Check for available load testing tools."""
388 for tool in ['wrk', 'ab']:
389 try:
390 subprocess.run([tool, '--version'], capture_output=True,
391 check=False)
392 return tool
393 except FileNotFoundError:
394 continue
395 return None
396
397 def warmup(self, requests: int = 10):
398 """Warm up the server."""

Callers 1

mainFunction · 0.80

Calls 1

runMethod · 0.45

Tested by

no test coverage detected