@@ -13,30 +13,73 @@ 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 --json
75+ ``` bash
76+ locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294 --json
3477```
3578
3679- Colorize output and show verdicts (green=better, red=worse):
3780
38- ```
39- python3 compare_runs.py test_runs/HTML-Report-292 test_runs/HTML-Report-294 --color
81+ ``` bash
82+ locust-compare test_runs/HTML-Report-292 test_runs/HTML-Report-294 --color
4083```
4184
4285Exit code is ` 0 ` on success and ` 1 ` on error.
0 commit comments