@@ -13,24 +13,67 @@ Compare performance results between two Locust runs and show changes relative to
1313
1414- Python 3.8+ (no third-party dependencies).
1515
16- ## Quick Start
16+ ## Installation
1717
18- - Compare two run directories (each containing a ` report.csv ` and HTML files):
18+ ### With uvx (recommended)
19+
20+ Run directly from GitHub without cloning:
21+
22+ ``` bash
23+ uvx --from git+https://github.com/dev-ankit/locust-compare.git locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294
24+ ```
25+
26+ Or from a local directory:
27+
28+ ``` bash
29+ uvx --from . locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294
30+ ```
31+
32+ Or from a cloned repository:
33+
34+ ``` bash
35+ git clone https://github.com/dev-ankit/locust-compare.git
36+ cd locust-compare
37+ uvx --from . locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294
38+ ```
39+
40+ Once published to PyPI, you can run without any prefix:
41+
42+ ``` bash
43+ uvx locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294
44+ ```
45+
46+ ### With pip
1947
48+ ``` bash
49+ pip install .
50+ locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294
2051```
52+
53+ ### Direct execution
54+
55+ ``` bash
2156python3 compare_runs.py test_runs/HTML-Report-292 test_runs/HTML-Report-294
2257```
2358
24- - Compare two specific CSV files:
59+ ## Quick Start
2560
61+ - Compare two run directories (each containing a ` report.csv ` and HTML files):
62+
63+ ``` bash
64+ locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294
2665```
27- python3 compare_runs.py test_runs/HTML-Report-292/report.csv test_runs/HTML-Report-294/report.csv
66+
67+ - Compare two specific CSV files:
68+
69+ ``` bash
70+ locust-compare test_runs/HTML-Report-292/report.csv test_runs/HTML-Report-294/report.csv
2871```
2972
3073- JSON output for scripting:
3174
32- ```
33- python3 compare_runs.py test_runs/HTML-Report-292 test_runs/HTML-Report-294 -o json
75+ ``` bash
76+ locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294 -o json
3477```
3578
3679- Markdown output with emoji indicators (✅ better, ❌ worse, ➖ same):
@@ -41,8 +84,8 @@ python3 compare_runs.py test_runs/HTML-Report-292 test_runs/HTML-Report-294 -o m
4184
4285- Colorize text output (green=better, red=worse):
4386
44- ```
45- python3 compare_runs.py test_runs/HTML-Report-292 test_runs/HTML-Report-294 --color
87+ ``` bash
88+ locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294 --color
4689```
4790
4891Exit code is ` 0 ` on success and ` 1 ` on error.
@@ -91,7 +134,7 @@ Verdict emojis:
91134
92135## JSON Schema
93136
94- The ` -- json ` output is a single JSON object containing keys for each compared item.
137+ The ` -o json ` output is a single JSON object containing keys for each compared item.
95138
96139- CSV items use their request name; the aggregated row is keyed as ` Aggregated ` .
97140- HTML feature pages are keyed as ` HTML:<feature_file_stem> ` .
0 commit comments