Skip to content

AlgorithmSpeedSample

QuantConnect.Lean.Engine.Results.Analysis.AlgorithmSpeedSample

AlgorithmSpeedSample(
    elapsed: timedelta,
    data_points: int,
    history_data_points: int,
    processed_days: int,
    total_days: int,
)

A point-in-time sample of the engine's cumulative speed counters, fed by the result handler into the AlgorithmSpeedTracker on each in-run analysis run.

Initializes a new instance of the AlgorithmSpeedSample struct.

Parameters:

Name Type Description Default
elapsed timedelta

Wall-clock time elapsed since the backtest started.

required
data_points int

Cumulative data points processed by the main algorithm loop.

required
history_data_points int

Cumulative data points served by the history provider.

required
processed_days int

Calendar days the backtest has processed so far.

required
total_days int

Total calendar days the backtest will run.

required

elapsed

elapsed: timedelta

The wall-clock time elapsed since the backtest started.

data_points

data_points: int

The cumulative data points processed by the main algorithm loop.

history_data_points

history_data_points: int

The cumulative data points served by the history provider.

processed_days

processed_days: int

The calendar days the backtest has processed so far.

total_days

total_days: int

The total calendar days the backtest will run.