SnmpKit.SnmpSim.TestHelpers.PerformanceHelper (snmpkit v0.6.6)

Performance testing utilities for SnmpSim.

Summary

Functions

Tests memory usage patterns under different loads.

Analyzes response time data and returns statistics.

Calculates error rate from error count and total requests.

Stress tests the system to find breaking points.

Measures latency under various load conditions.

Measures scalability by testing performance at different device counts.

Runs a sustained load test with comprehensive monitoring.

Functions

analyze_memory_patterns(devices, test_scenarios)

Tests memory usage patterns under different loads.

analyze_response_times(response_times)

Analyzes response time data and returns statistics.

benchmark_throughput(devices, max_rps, step_size, duration_per_step_ms)

Performs throughput benchmarking.

calculate_error_rate(error_count, total_requests)

Calculates error rate from error count and total requests.

find_breaking_point(devices, options \\ %{})

Stress tests the system to find breaking points.

measure_latency_under_load(devices, load_scenarios)

Measures latency under various load conditions.

measure_scalability(base_device_count, max_device_count, step_size, test_duration_ms)

Measures scalability by testing performance at different device counts.

profile_cpu_usage(devices, duration_ms, sample_interval_ms)

Profiles CPU usage under load.

run_sustained_load_test(devices, target_rps, duration_ms, options \\ %{})

Runs a sustained load test with comprehensive monitoring.