Local changes: Updated model training, removed debug instrumentation, and configuration improvements
This commit is contained in:
2
tests/performance/__init__.py
Normal file
2
tests/performance/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
"""Performance tests."""
|
||||
|
||||
26
tests/performance/test_backtest_performance.py
Normal file
26
tests/performance/test_backtest_performance.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""Performance benchmarks for backtesting."""
|
||||
|
||||
import pytest
|
||||
import time
|
||||
from src.backtesting.engine import get_backtest_engine
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
class TestBacktestPerformance:
|
||||
"""Performance tests for backtesting."""
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_backtest_speed(self):
|
||||
"""Test backtesting speed."""
|
||||
engine = get_backtest_engine()
|
||||
|
||||
# Create minimal backtest scenario
|
||||
start_time = time.time()
|
||||
|
||||
# Run minimal backtest (would need actual implementation)
|
||||
# This is a placeholder
|
||||
|
||||
elapsed = time.time() - start_time
|
||||
# Backtest should complete in reasonable time
|
||||
assert elapsed < 60 # Less than 60 seconds for basic test
|
||||
|
||||
Reference in New Issue
Block a user