SnmpKit.SnmpMgr.PerformanceBenchmark (snmpkit v2.0.1)

Performance benchmarking and profiling tools for SNMP operations.

Measures throughput, latency and memory usage of the multi-target engine against simulated devices.

Summary

Functions

Benchmarks the multi-target engine (SnmpKit.SnmpMgr.Multi) against simulated devices.

Measures throughput (requests per second) for a given configuration.

Monitors UDP buffer utilization during high-load operations.

Profiles memory usage during concurrent SNMP operations.

Functions

compare_architectures(opts \\ [])

Benchmarks the multi-target engine (SnmpKit.SnmpMgr.Multi) against simulated devices.

Options

  • :target_count - Number of targets to test (default: 10)
  • :requests_per_target - Number of requests per target (default: 5)
  • :max_concurrent - Concurrency limit (default: 10)
  • :timeout - Request timeout in ms (default: 5000)
  • :warmup_rounds - Warmup iterations (default: 3)
  • :benchmark_rounds - Benchmark iterations (default: 10)

measure_throughput(opts \\ [])

Measures throughput (requests per second) for a given configuration.

Options

  • :duration_seconds - How long to run the test (default: 30)
  • :max_concurrent - Concurrency limit (default: 10)
  • :target_count - Number of targets (default: 5)

monitor_buffer_usage(targets, max_concurrent, timeout)

Monitors UDP buffer utilization during high-load operations.

profile_memory_usage(targets, max_concurrent, timeout)

Profiles memory usage during concurrent SNMP operations.