Fix benchmark tests

This commit is contained in:
2025-11-12 21:04:39 +07:00
parent e0d2111553
commit d94896915c
5 changed files with 133 additions and 116 deletions

View File

@@ -18,11 +18,11 @@ Or run the script directly:
## What it does
1. Runs the **main performance telemetry test** (`ExecuteBacktest_With_Large_Dataset_Should_Show_Performance_Telemetry`)
2. Runs the **two-scenarios performance test** (`ExecuteBacktest_With_Two_Scenarios_Should_Show_Performance_Telemetry`) - tests pre-calculated signals with 2 indicators and validates business logic consistency
1. Runs the **main performance telemetry test** (`Telemetry_ETH_RSI`)
2. Runs the **two-scenarios performance test** (`Telemetry_ETH_RSI_EMACROSS`) - tests pre-calculated signals with 2 indicators and validates business logic consistency
3. Runs **two business logic validation tests**:
- `ExecuteBacktest_With_ETH_FifteenMinutes_Data_Should_Return_LightBacktest`
- `ExecuteBacktest_With_ETH_FifteenMinutes_Data_Second_File_Should_Return_LightBacktest`
- `LongBacktest_ETH_RSI`
4. **Validates Business Logic**: Compares Final PnL with the first run baseline to ensure optimizations don't break behavior
5. Extracts performance metrics from the test output
6. Appends a new row to `src/Managing.Workers.Tests/performance-benchmarks.csv` (main test)
@@ -196,13 +196,13 @@ The benchmark includes **comprehensive business logic validation** on three leve
- Validates specific trading scenarios and positions
- Ensures indicator calculations are correct
- `ExecuteBacktest_With_ETH_FifteenMinutes_Data_Second_File_Should_Return_LightBacktest`
- `LongBacktest_ETH_RSI`
- Tests with a different ETH dataset
- Validates consistency across different market data
- Confirms trading logic works reliably
#### 2. **Large Dataset Telemetry Test** (1 test)
- `ExecuteBacktest_With_Large_Dataset_Should_Show_Performance_Telemetry`
- `Telemetry_ETH_RSI`
- Validates performance metrics extraction
- Confirms signal updates and backtest steps
- Ensures telemetry data is accurate