Package com.guinetik.rr
Class PerformanceProfilingTest
- java.lang.Object
-
- com.guinetik.rr.PerformanceProfilingTest
-
public class PerformanceProfilingTest extends Object
Performance profiling tests for RocketRest Tests HTTP request latency using https://httpstat.us service. These tests are ignored by default as they depend on external services and are slow. Run with: mvn test -Dtest=PerformanceProfilingTest
-
-
Constructor Summary
Constructors Constructor Description PerformanceProfilingTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestAsyncClientPerformance()Tests the performance of asynchronous GET requests.voidtestCircuitBreakerClientPerformance()Tests the performance impact of the circuit breaker.voidtestCircuitBreakerOverhead()This test specifically measures the overhead of the circuit breaker pattern by directly comparing standard client vs circuit breaker client performance.voidtestConcurrentRequestsPerformance()Tests performance under load by making concurrent requests.voidtestFluentClientPerformance()Tests the performance of the fluent API with Result pattern.voidtestPayloadSizeImpact()Tests performance with different payload sizesvoidtestSyncClientPerformance()Tests the performance of synchronous GET requests.
-
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
testSyncClientPerformance
public void testSyncClientPerformance()
Tests the performance of synchronous GET requests. This provides a baseline for comparison.
-
testAsyncClientPerformance
public void testAsyncClientPerformance()
Tests the performance of asynchronous GET requests.
-
testFluentClientPerformance
public void testFluentClientPerformance()
Tests the performance of the fluent API with Result pattern.
-
testCircuitBreakerClientPerformance
public void testCircuitBreakerClientPerformance()
Tests the performance impact of the circuit breaker.
-
testConcurrentRequestsPerformance
public void testConcurrentRequestsPerformance()
Tests performance under load by making concurrent requests.
-
testPayloadSizeImpact
public void testPayloadSizeImpact()
Tests performance with different payload sizes
-
testCircuitBreakerOverhead
public void testCircuitBreakerOverhead()
This test specifically measures the overhead of the circuit breaker pattern by directly comparing standard client vs circuit breaker client performance. It uses a larger sample size for statistical significance.
-
-