@echo off
echo ===== Running Sauna Driver Performance Tests =====

echo.
echo Building performance tests...
cl /EHsc /std:c++17 /I"../../headers" /Fe"performance_tests.exe" performance_test.cpp ../lighthouse_driver_wrapper.cpp ../imu_data_provider.cpp test_utils.cpp

if %ERRORLEVEL% neq 0 (
    echo Failed to build performance tests.
    exit /b %ERRORLEVEL%
)

echo.
echo Running performance tests...
echo Note: These tests will measure CPU usage, memory usage, latency, and IMU data throughput.
echo Results will be saved to a performance report file.
echo.
performance_tests.exe

echo.
echo Performance tests completed.
pause