Commit 7f39986
authored
Refactor Benchmark Report Generation and Update Backend Configurations (#33)
## Summary
This PR refactors the benchmark report generation process and updates
backend configurations for better performance and clarity. The main
changes include restructuring the entry point for benchmark generation,
consolidating backend configurations, and improving error handling for
better user experience.
## Details
- Introduced `generate_benchmark_report_cli` as the main CLI entry point
for benchmark generation.
- Refactored `generate_benchmark_report` to handle various input
configurations and streamline the execution process.
- Removed unused parameters (`host`, `port`) and consolidated backend
URL configurations into a single `target` parameter.
- Updated `OpenAIBackend` initialization to eliminate ambiguity around
base URL settings.
- Enhanced error handling and logging, ensuring informative messages for
missing or incorrect configurations.
- Modified `EmulatedRequestGenerator` and `FileRequestGenerator` to
handle optional configuration inputs.
- Removed obsolete CLI test files and restructured e2e tests to align
with the new CLI entry point.
- Added comprehensive unit tests for the main benchmark generation
functions and CLI commands.1 parent 59ba130 commit 7f39986
File tree
15 files changed
+453
-246
lines changed- src/guidellm
- backend
- request
- tests
- e2e
- cli
- unit
- backend
15 files changed
+453
-246
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | | - | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| 17 | + | |
12 | 18 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | | - | |
41 | | - | |
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
| |||
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
64 | 54 | | |
65 | 55 | | |
66 | | - | |
| 56 | + | |
67 | 57 | | |
68 | 58 | | |
69 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments