Class 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 Detail

      • PerformanceProfilingTest

        public PerformanceProfilingTest()
    • 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.