pr-perfguard 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- perfguard/__init__.py +3 -0
- perfguard/cli.py +188 -0
- perfguard/config.py +239 -0
- perfguard/metrics.py +281 -0
- perfguard/reporter.py +120 -0
- perfguard/runner.py +386 -0
- pr_perfguard-0.2.0.dist-info/METADATA +153 -0
- pr_perfguard-0.2.0.dist-info/RECORD +11 -0
- pr_perfguard-0.2.0.dist-info/WHEEL +5 -0
- pr_perfguard-0.2.0.dist-info/entry_points.txt +2 -0
- pr_perfguard-0.2.0.dist-info/top_level.txt +1 -0
perfguard/__init__.py
ADDED
perfguard/cli.py
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"""Command-line interface for PR-PerfGuard."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from perfguard import __version__
|
|
10
|
+
from perfguard.config import (
|
|
11
|
+
LoadConfig,
|
|
12
|
+
PerfGuardConfig,
|
|
13
|
+
ServiceConfig,
|
|
14
|
+
ThresholdConfig,
|
|
15
|
+
default_config_yaml,
|
|
16
|
+
load_config,
|
|
17
|
+
validate_config,
|
|
18
|
+
)
|
|
19
|
+
from perfguard.metrics import compare_reports, load_report, save_report
|
|
20
|
+
from perfguard.reporter import post_pr_comment, render_markdown, render_single_run_summary
|
|
21
|
+
from perfguard.runner import run_benchmark
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _build_config_from_args(args: argparse.Namespace) -> PerfGuardConfig:
|
|
25
|
+
if getattr(args, "config", None) and Path(args.config).exists():
|
|
26
|
+
cfg = load_config(args.config)
|
|
27
|
+
else:
|
|
28
|
+
cfg = PerfGuardConfig(
|
|
29
|
+
service=ServiceConfig(),
|
|
30
|
+
load=LoadConfig(),
|
|
31
|
+
thresholds=ThresholdConfig(),
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
if getattr(args, "url", None):
|
|
35
|
+
cfg.load.url = args.url
|
|
36
|
+
if getattr(args, "cmd", None):
|
|
37
|
+
cfg.service.command = args.cmd
|
|
38
|
+
if getattr(args, "healthcheck_url", None):
|
|
39
|
+
cfg.service.healthcheck_url = args.healthcheck_url
|
|
40
|
+
if getattr(args, "concurrency", None) is not None:
|
|
41
|
+
cfg.load.concurrency = args.concurrency
|
|
42
|
+
if getattr(args, "duration", None) is not None:
|
|
43
|
+
cfg.load.duration_seconds = args.duration
|
|
44
|
+
if getattr(args, "warmup", None) is not None:
|
|
45
|
+
cfg.load.warmup_seconds = args.warmup
|
|
46
|
+
if getattr(args, "repeats", None) is not None:
|
|
47
|
+
cfg.load.repeats = args.repeats
|
|
48
|
+
if getattr(args, "target_rps", None) is not None:
|
|
49
|
+
cfg.load.target_rps = args.target_rps
|
|
50
|
+
validate_config(cfg)
|
|
51
|
+
return cfg
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _write_text_file(path: str | Path, content: str) -> Path:
|
|
55
|
+
out = Path(path)
|
|
56
|
+
out.parent.mkdir(parents=True, exist_ok=True)
|
|
57
|
+
out.write_text(content, encoding="utf-8")
|
|
58
|
+
return out
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _cmd_init(args: argparse.Namespace) -> int:
|
|
62
|
+
target = Path(args.path)
|
|
63
|
+
if target.exists() and not args.force:
|
|
64
|
+
print(f"Error: {target} already exists (use --force to overwrite)", file=sys.stderr)
|
|
65
|
+
return 2
|
|
66
|
+
_write_text_file(target, default_config_yaml())
|
|
67
|
+
print(f"Created {target}")
|
|
68
|
+
return 0
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _cmd_run(args: argparse.Namespace) -> int:
|
|
72
|
+
cfg = _build_config_from_args(args)
|
|
73
|
+
report = run_benchmark(cfg)
|
|
74
|
+
if args.out:
|
|
75
|
+
save_report(report, args.out)
|
|
76
|
+
print(f"Saved report to {args.out}")
|
|
77
|
+
print(render_single_run_summary(report))
|
|
78
|
+
return 0
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def _cmd_compare(args: argparse.Namespace) -> int:
|
|
82
|
+
thresholds = (
|
|
83
|
+
load_config(args.config).thresholds
|
|
84
|
+
if args.config and Path(args.config).exists()
|
|
85
|
+
else ThresholdConfig()
|
|
86
|
+
)
|
|
87
|
+
baseline = load_report(args.baseline)
|
|
88
|
+
current = load_report(args.current)
|
|
89
|
+
result = compare_reports(baseline, current, thresholds)
|
|
90
|
+
md = render_markdown(result)
|
|
91
|
+
|
|
92
|
+
if args.markdown_out:
|
|
93
|
+
_write_text_file(args.markdown_out, md)
|
|
94
|
+
print(md)
|
|
95
|
+
|
|
96
|
+
if args.pr_number:
|
|
97
|
+
post_pr_comment(md, pr_number=args.pr_number)
|
|
98
|
+
|
|
99
|
+
return 0 if result.passed else 1
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def _cmd_check(args: argparse.Namespace) -> int:
|
|
103
|
+
cfg = _build_config_from_args(args)
|
|
104
|
+
current = run_benchmark(cfg)
|
|
105
|
+
if args.out:
|
|
106
|
+
save_report(current, args.out)
|
|
107
|
+
|
|
108
|
+
baseline_path = Path(args.baseline)
|
|
109
|
+
if not baseline_path.exists():
|
|
110
|
+
print(f"Baseline not found at {baseline_path}; skipping regression comparison.")
|
|
111
|
+
print(render_single_run_summary(current))
|
|
112
|
+
return 0
|
|
113
|
+
|
|
114
|
+
baseline = load_report(baseline_path)
|
|
115
|
+
result = compare_reports(baseline, current, cfg.thresholds)
|
|
116
|
+
md = render_markdown(result)
|
|
117
|
+
|
|
118
|
+
if args.markdown_out:
|
|
119
|
+
_write_text_file(args.markdown_out, md)
|
|
120
|
+
print(md)
|
|
121
|
+
|
|
122
|
+
if args.pr_number:
|
|
123
|
+
post_pr_comment(md, pr_number=args.pr_number)
|
|
124
|
+
|
|
125
|
+
return 0 if result.passed else 1
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
129
|
+
parser = argparse.ArgumentParser(
|
|
130
|
+
prog="perfguard",
|
|
131
|
+
description="Automated API performance regression testing for Pull Requests.",
|
|
132
|
+
)
|
|
133
|
+
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
|
|
134
|
+
sub = parser.add_subparsers(dest="subcommand", required=True)
|
|
135
|
+
|
|
136
|
+
# init
|
|
137
|
+
p_init = sub.add_parser("init", help="Create a starter perfguard.yml file.")
|
|
138
|
+
p_init.add_argument("--path", default="perfguard.yml")
|
|
139
|
+
p_init.add_argument("--force", action="store_true")
|
|
140
|
+
p_init.set_defaults(func=_cmd_init)
|
|
141
|
+
|
|
142
|
+
# shared run options
|
|
143
|
+
def add_run_flags(p: argparse.ArgumentParser) -> None:
|
|
144
|
+
p.add_argument("-c", "--config", default="perfguard.yml", help="Path to perfguard.yml")
|
|
145
|
+
p.add_argument("--url", help="Target HTTP URL to benchmark")
|
|
146
|
+
p.add_argument("--cmd", help="Shell command to start the target service")
|
|
147
|
+
p.add_argument("--healthcheck-url", help="Healthcheck URL for service startup")
|
|
148
|
+
p.add_argument("--concurrency", type=int, help="Number of concurrent workers")
|
|
149
|
+
p.add_argument("--duration", type=float, help="Load test duration in seconds")
|
|
150
|
+
p.add_argument("--warmup", type=float, help="Warmup duration in seconds")
|
|
151
|
+
p.add_argument("--repeats", type=int, help="Number of benchmark repeats (median aggregated)")
|
|
152
|
+
p.add_argument("--target-rps", type=float, help="Optional fixed total request rate (req/s)")
|
|
153
|
+
p.add_argument("-o", "--out", help="Write JSON report to this path")
|
|
154
|
+
|
|
155
|
+
p_run = sub.add_parser("run", help="Run a load test and output metrics.")
|
|
156
|
+
add_run_flags(p_run)
|
|
157
|
+
p_run.set_defaults(func=_cmd_run)
|
|
158
|
+
|
|
159
|
+
p_compare = sub.add_parser("compare", help="Compare baseline and current JSON reports.")
|
|
160
|
+
p_compare.add_argument("baseline", help="Path to baseline JSON report")
|
|
161
|
+
p_compare.add_argument("current", help="Path to current PR JSON report")
|
|
162
|
+
p_compare.add_argument("-c", "--config", default="perfguard.yml", help="Config for thresholds")
|
|
163
|
+
p_compare.add_argument("--markdown-out", help="Write Markdown diff report to file")
|
|
164
|
+
p_compare.add_argument("--pr-number", type=int, help="Post/update comment on GitHub PR")
|
|
165
|
+
p_compare.set_defaults(func=_cmd_compare)
|
|
166
|
+
|
|
167
|
+
p_check = sub.add_parser("check", help="Run benchmark and compare against baseline.")
|
|
168
|
+
add_run_flags(p_check)
|
|
169
|
+
p_check.add_argument("--baseline", required=True, help="Path to baseline JSON report")
|
|
170
|
+
p_check.add_argument("--markdown-out", help="Write Markdown diff report to file")
|
|
171
|
+
p_check.add_argument("--pr-number", type=int, help="Post/update comment on GitHub PR")
|
|
172
|
+
p_check.set_defaults(func=_cmd_check)
|
|
173
|
+
|
|
174
|
+
return parser
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def main(argv: list[str] | None = None) -> int:
|
|
178
|
+
parser = build_parser()
|
|
179
|
+
args = parser.parse_args(argv)
|
|
180
|
+
try:
|
|
181
|
+
return args.func(args)
|
|
182
|
+
except Exception as exc: # noqa: BLE001
|
|
183
|
+
print(f"perfguard error: {exc}", file=sys.stderr)
|
|
184
|
+
return 2
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
if __name__ == "__main__":
|
|
188
|
+
raise SystemExit(main())
|
perfguard/config.py
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"""Configuration loader and schema for PR-PerfGuard."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass, field
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
import yaml
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@dataclass(slots=True)
|
|
13
|
+
class ServiceConfig:
|
|
14
|
+
"""How to start and health-check the target service."""
|
|
15
|
+
|
|
16
|
+
command: str | None = None
|
|
17
|
+
healthcheck_url: str | None = None
|
|
18
|
+
startup_timeout_seconds: float = 30.0
|
|
19
|
+
cwd: str | None = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass(slots=True)
|
|
23
|
+
class EndpointConfig:
|
|
24
|
+
"""Single weighted HTTP endpoint in a multi-endpoint load scenario."""
|
|
25
|
+
|
|
26
|
+
url: str
|
|
27
|
+
method: str = "GET"
|
|
28
|
+
headers: dict[str, str] = field(default_factory=dict)
|
|
29
|
+
body: str | None = None
|
|
30
|
+
weight: float = 1.0
|
|
31
|
+
expected_statuses: list[int] | None = None
|
|
32
|
+
name: str | None = None
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@dataclass(slots=True)
|
|
36
|
+
class LoadConfig:
|
|
37
|
+
"""HTTP load scenario parameters."""
|
|
38
|
+
|
|
39
|
+
url: str = "http://127.0.0.1:8000/health"
|
|
40
|
+
method: str = "GET"
|
|
41
|
+
headers: dict[str, str] = field(default_factory=dict)
|
|
42
|
+
body: str | None = None
|
|
43
|
+
concurrency: int = 10
|
|
44
|
+
duration_seconds: float = 10.0
|
|
45
|
+
warmup_seconds: float = 2.0
|
|
46
|
+
request_timeout_seconds: float = 10.0
|
|
47
|
+
expected_statuses: list[int] | None = None
|
|
48
|
+
endpoints: list[EndpointConfig] = field(default_factory=list)
|
|
49
|
+
repeats: int = 1
|
|
50
|
+
target_rps: float | None = None
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@dataclass(slots=True)
|
|
54
|
+
class ThresholdConfig:
|
|
55
|
+
"""Regression thresholds that fail a PR check when exceeded."""
|
|
56
|
+
|
|
57
|
+
max_p95_regression_pct: float = 15.0
|
|
58
|
+
max_p99_regression_pct: float = 25.0
|
|
59
|
+
max_rps_drop_pct: float = 10.0
|
|
60
|
+
max_error_rate_pct: float = 1.0
|
|
61
|
+
max_memory_growth_pct: float = 20.0
|
|
62
|
+
min_p95_delta_ms: float = 0.0
|
|
63
|
+
min_p99_delta_ms: float = 0.0
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@dataclass(slots=True)
|
|
67
|
+
class PerfGuardConfig:
|
|
68
|
+
"""Top-level PR-PerfGuard configuration."""
|
|
69
|
+
|
|
70
|
+
service: ServiceConfig = field(default_factory=ServiceConfig)
|
|
71
|
+
load: LoadConfig = field(default_factory=LoadConfig)
|
|
72
|
+
thresholds: ThresholdConfig = field(default_factory=ThresholdConfig)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def _merge_dataclass(cls: type[Any], raw: Any, section_name: str) -> Any:
|
|
76
|
+
if raw is None:
|
|
77
|
+
return cls()
|
|
78
|
+
if not isinstance(raw, dict):
|
|
79
|
+
raise TypeError(f"Invalid '{section_name}' section: expected mapping")
|
|
80
|
+
valid_fields = set(cls.__dataclass_fields__)
|
|
81
|
+
unknown = sorted(set(raw) - valid_fields)
|
|
82
|
+
if unknown:
|
|
83
|
+
raise ValueError(
|
|
84
|
+
f"Unknown key(s) in '{section_name}' config: {', '.join(unknown)}"
|
|
85
|
+
)
|
|
86
|
+
return cls(**raw)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def _validate_target(
|
|
90
|
+
*,
|
|
91
|
+
url: str,
|
|
92
|
+
method: str,
|
|
93
|
+
headers: Any,
|
|
94
|
+
expected_statuses: list[int] | None,
|
|
95
|
+
prefix: str,
|
|
96
|
+
) -> None:
|
|
97
|
+
if not url or not url.startswith(("http://", "https://")):
|
|
98
|
+
raise ValueError(f"{prefix}.url must start with http:// or https://")
|
|
99
|
+
if not method or not method.strip():
|
|
100
|
+
raise ValueError(f"{prefix}.method must be a non-empty HTTP method")
|
|
101
|
+
if not isinstance(headers, dict):
|
|
102
|
+
raise TypeError(f"{prefix}.headers must be a mapping")
|
|
103
|
+
if expected_statuses is not None:
|
|
104
|
+
if not isinstance(expected_statuses, list) or not expected_statuses:
|
|
105
|
+
raise ValueError(
|
|
106
|
+
f"{prefix}.expected_statuses must be a non-empty list of HTTP status codes"
|
|
107
|
+
)
|
|
108
|
+
for code in expected_statuses:
|
|
109
|
+
if isinstance(code, bool) or not isinstance(code, int) or not (100 <= code <= 599):
|
|
110
|
+
raise ValueError(
|
|
111
|
+
f"Invalid HTTP status code in {prefix}.expected_statuses: {code!r}"
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _parse_load_config(raw: Any) -> LoadConfig:
|
|
116
|
+
if raw is None:
|
|
117
|
+
return LoadConfig()
|
|
118
|
+
if not isinstance(raw, dict):
|
|
119
|
+
raise TypeError("Invalid 'load' section: expected mapping")
|
|
120
|
+
|
|
121
|
+
raw_copy = dict(raw)
|
|
122
|
+
raw_endpoints = raw_copy.pop("endpoints", None)
|
|
123
|
+
cfg = _merge_dataclass(LoadConfig, raw_copy, "load")
|
|
124
|
+
if raw_endpoints is not None:
|
|
125
|
+
if not isinstance(raw_endpoints, list):
|
|
126
|
+
raise TypeError("Invalid 'load.endpoints': expected list of endpoint mappings")
|
|
127
|
+
cfg.endpoints = [
|
|
128
|
+
_merge_dataclass(EndpointConfig, item, f"load.endpoints[{idx}]")
|
|
129
|
+
for idx, item in enumerate(raw_endpoints)
|
|
130
|
+
]
|
|
131
|
+
return cfg
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def validate_config(cfg: PerfGuardConfig) -> None:
|
|
135
|
+
"""Validate configuration values and bounds."""
|
|
136
|
+
if cfg.service.startup_timeout_seconds <= 0:
|
|
137
|
+
raise ValueError("service.startup_timeout_seconds must be > 0")
|
|
138
|
+
|
|
139
|
+
if not cfg.load.endpoints:
|
|
140
|
+
_validate_target(
|
|
141
|
+
url=cfg.load.url,
|
|
142
|
+
method=cfg.load.method,
|
|
143
|
+
headers=cfg.load.headers,
|
|
144
|
+
expected_statuses=cfg.load.expected_statuses,
|
|
145
|
+
prefix="load",
|
|
146
|
+
)
|
|
147
|
+
else:
|
|
148
|
+
for idx, ep in enumerate(cfg.load.endpoints):
|
|
149
|
+
_validate_target(
|
|
150
|
+
url=ep.url,
|
|
151
|
+
method=ep.method,
|
|
152
|
+
headers=ep.headers,
|
|
153
|
+
expected_statuses=ep.expected_statuses,
|
|
154
|
+
prefix=f"load.endpoints[{idx}]",
|
|
155
|
+
)
|
|
156
|
+
if ep.weight <= 0:
|
|
157
|
+
raise ValueError(f"load.endpoints[{idx}].weight must be > 0")
|
|
158
|
+
|
|
159
|
+
if cfg.load.concurrency < 1:
|
|
160
|
+
raise ValueError("load.concurrency must be >= 1")
|
|
161
|
+
if cfg.load.duration_seconds <= 0:
|
|
162
|
+
raise ValueError("load.duration_seconds must be > 0")
|
|
163
|
+
if cfg.load.warmup_seconds < 0:
|
|
164
|
+
raise ValueError("load.warmup_seconds must be >= 0")
|
|
165
|
+
if cfg.load.request_timeout_seconds <= 0:
|
|
166
|
+
raise ValueError("load.request_timeout_seconds must be > 0")
|
|
167
|
+
if cfg.load.repeats < 1:
|
|
168
|
+
raise ValueError("load.repeats must be >= 1")
|
|
169
|
+
if cfg.load.target_rps is not None and cfg.load.target_rps <= 0:
|
|
170
|
+
raise ValueError("load.target_rps must be > 0")
|
|
171
|
+
|
|
172
|
+
thresholds = cfg.thresholds
|
|
173
|
+
for name in (
|
|
174
|
+
"max_p95_regression_pct",
|
|
175
|
+
"max_p99_regression_pct",
|
|
176
|
+
"max_rps_drop_pct",
|
|
177
|
+
"max_error_rate_pct",
|
|
178
|
+
"max_memory_growth_pct",
|
|
179
|
+
"min_p95_delta_ms",
|
|
180
|
+
"min_p99_delta_ms",
|
|
181
|
+
):
|
|
182
|
+
if getattr(thresholds, name) < 0:
|
|
183
|
+
raise ValueError(f"thresholds.{name} must be >= 0")
|
|
184
|
+
|
|
185
|
+
if thresholds.max_rps_drop_pct > 100.0:
|
|
186
|
+
raise ValueError("thresholds.max_rps_drop_pct must be <= 100")
|
|
187
|
+
if thresholds.max_error_rate_pct > 100.0:
|
|
188
|
+
raise ValueError("thresholds.max_error_rate_pct must be <= 100")
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def load_config(path: str | Path) -> PerfGuardConfig:
|
|
192
|
+
"""Load and validate configuration from a YAML file."""
|
|
193
|
+
config_path = Path(path)
|
|
194
|
+
if not config_path.exists():
|
|
195
|
+
raise FileNotFoundError(f"Config file not found: {config_path}")
|
|
196
|
+
|
|
197
|
+
data = yaml.safe_load(config_path.read_text(encoding="utf-8")) or {}
|
|
198
|
+
if not isinstance(data, dict):
|
|
199
|
+
raise TypeError(f"Invalid config format in {config_path}: expected YAML mapping")
|
|
200
|
+
|
|
201
|
+
valid_sections = {"service", "load", "thresholds"}
|
|
202
|
+
unknown_sections = sorted(set(data) - valid_sections)
|
|
203
|
+
if unknown_sections:
|
|
204
|
+
raise ValueError(
|
|
205
|
+
f"Unknown top-level section(s) in {config_path}: {', '.join(unknown_sections)}"
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
cfg = PerfGuardConfig(
|
|
209
|
+
service=_merge_dataclass(ServiceConfig, data.get("service"), "service"),
|
|
210
|
+
load=_parse_load_config(data.get("load")),
|
|
211
|
+
thresholds=_merge_dataclass(ThresholdConfig, data.get("thresholds"), "thresholds"),
|
|
212
|
+
)
|
|
213
|
+
validate_config(cfg)
|
|
214
|
+
return cfg
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def default_config_yaml() -> str:
|
|
218
|
+
"""Return a starter perfguard.yml template."""
|
|
219
|
+
return """\
|
|
220
|
+
service:
|
|
221
|
+
command: "uvicorn app.main:app --host 127.0.0.1 --port 8000"
|
|
222
|
+
healthcheck_url: "http://127.0.0.1:8000/health"
|
|
223
|
+
startup_timeout_seconds: 30
|
|
224
|
+
|
|
225
|
+
load:
|
|
226
|
+
url: "http://127.0.0.1:8000/items"
|
|
227
|
+
method: "GET"
|
|
228
|
+
concurrency: 20
|
|
229
|
+
duration_seconds: 10
|
|
230
|
+
warmup_seconds: 2
|
|
231
|
+
request_timeout_seconds: 10
|
|
232
|
+
|
|
233
|
+
thresholds:
|
|
234
|
+
max_p95_regression_pct: 15.0
|
|
235
|
+
max_p99_regression_pct: 25.0
|
|
236
|
+
max_rps_drop_pct: 10.0
|
|
237
|
+
max_error_rate_pct: 1.0
|
|
238
|
+
max_memory_growth_pct: 20.0
|
|
239
|
+
"""
|