Raxol.Test.Performance (Raxol v0.5.0)

View Source

Provides utilities for performance testing of Raxol components.

This module includes:

  • Render time benchmarking
  • Memory usage profiling
  • Event handling latency testing
  • Resource utilization tracking

Summary

Functions

Measures event handling latency.

Measures memory usage during component operations.

Measures the time taken to render a component multiple times.

Runs a benchmark suite for a component.

Sets up a component for performance testing with benchmark configuration.

Tracks resource utilization over time.

Functions

measure_event_latency(component, event)

Measures event handling latency.

measure_memory_usage(component, operation)

Measures memory usage during component operations.

measure_render_time(component, iterations \\ 1000)

Measures the time taken to render a component multiple times.

run_benchmark_suite(component)

Runs a benchmark suite for a component.

setup_benchmark_component(module, props \\ %{})

Sets up a component for performance testing with benchmark configuration.

track_resource_utilization(component, duration_ms)

Tracks resource utilization over time.