You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can run the main method within each Benchmark class from your IDE. If you are using Eclipse, you might need to
35
-
set up build configurations for JMH annotation, please check [JMH]. Note that the benchmark result from IDE
36
-
might not be as reliable as the above approaches and is generally not recommended.
37
-
34
+
You can run the main method within `UnifiedBenchmarkRunner` class from your IDE to execute all benchmark comparisons, or run individual benchmark classes like `Apache4Benchmark` and `Apache5Benchmark`. If you are using Eclipse, you might need to set up build configurations for JMH annotation, please check [JMH]. Note that the benchmark result from IDE might not be as reliable as the above approaches and is generally not recommended.
35
+
36
+
## UnifiedBenchmarkRunner
37
+
38
+
The `UnifiedBenchmarkRunner` provides a comprehensive comparison between different HTTP client implementations:
39
+
40
+
- **Apache4**: Apache HttpClient 4.x baseline
41
+
- **Apache5-Platform**: Apache HttpClient 5.x with platform threads
42
+
- **Apache5-Virtual**: Apache HttpClient 5.x with virtual threads
43
+
44
+
The runner executes all benchmark variations, publishes metrics to CloudWatch, and generates a detailed comparison report showing performance improvements between implementations.
45
+
46
+
## Benchmark Operations
47
+
48
+
Each benchmark implementation tests the following operations:
49
+
- `simpleGet`: Single-threaded GET operations
50
+
- `simplePut`: Single-threaded PUT operations
51
+
- `multiThreadedGet`: Multi-threaded GET operations (10 threads)
52
+
- `multiThreadedPut`: Multi-threaded PUT operations (10 threads)
0 commit comments