haive.core.utils.debugkit.benchmarking.load¶

Load Testing and Stress Testing Utilities

Provides concurrent load testing and spike testing capabilities.

Classes¶

LoadTester

Load testing with concurrent users.

Module Contents¶

class haive.core.utils.debugkit.benchmarking.load.LoadTester[source]¶

Load testing with concurrent users.

load_test(func, *args, concurrent_users=10, duration_seconds=60, ramp_up_seconds=10, **kwargs)[source]¶

Perform load testing with concurrent users.

Parameters:
Return type:

dict[str, any]

spike_test(func, *args, base_users=5, spike_users=50, spike_duration=30, **kwargs)[source]¶

Perform spike testing with sudden load increases.

Parameters:
Return type:

dict[str, any]