{
    "timestamp": "2025-09-10 01:22:31",
    "overall_performance": 90.41666666666666,
    "execution_time": 3.272326946258545,
    "test_results": {
        "sync_performance": {
            "small_dataset": {
                "record_count": 10,
                "estimated_time": 0.2,
                "actual_test_time": 3.0994415283203125e-6,
                "success": true,
                "within_target": true
            },
            "medium_dataset": {
                "record_count": 100,
                "estimated_time": 2.2,
                "actual_test_time": 1.1920928955078125e-6,
                "success": true,
                "within_target": true
            },
            "large_dataset": {
                "record_count": 1000,
                "estimated_time": 31,
                "actual_test_time": 0,
                "success": false,
                "within_target": false
            }
        },
        "queue_performance": {
            "small_queue": {
                "queue_size": 50,
                "processing_time": 2.1,
                "throughput": 23.80952380952381,
                "meets_target": true
            },
            "medium_queue": {
                "queue_size": 200,
                "processing_time": 8.1,
                "throughput": 24.691358024691358,
                "meets_target": true
            },
            "large_queue": {
                "queue_size": 500,
                "processing_time": 20.1,
                "throughput": 24.87562189054726,
                "meets_target": true
            }
        },
        "api_performance": {
            "single_request": {
                "request_count": 1,
                "total_time": 8.821487426757812e-6,
                "avg_response_time": 0.8079999999999999,
                "success_rate": 100,
                "meets_target": true
            },
            "batch_requests": {
                "request_count": 10,
                "total_time": 0.45452094078063965,
                "avg_response_time": 0.7154999999999999,
                "success_rate": 100,
                "meets_target": true
            },
            "heavy_load": {
                "request_count": 50,
                "total_time": 2.465378999710083,
                "avg_response_time": 0.6728000000000002,
                "success_rate": 100,
                "meets_target": true
            }
        },
        "memory_usage": {
            "baseline": {
                "memory_used_mb": 0,
                "total_memory_mb": 2,
                "within_limit": true
            },
            "small_sync": {
                "memory_used_mb": 0,
                "total_memory_mb": 2,
                "within_limit": true
            },
            "large_sync": {
                "memory_used_mb": 0,
                "total_memory_mb": 2,
                "within_limit": true
            },
            "peak_usage": {
                "memory_used_mb": 0,
                "total_memory_mb": 2,
                "within_limit": true
            }
        },
        "database_performance": {
            "insert_performance": {
                "operation_count": 100,
                "operation_time": 0.30000000000000004,
                "ops_per_second": 333.33333333333326,
                "acceptable": true
            },
            "select_performance": {
                "operation_count": 500,
                "operation_time": 0.6,
                "ops_per_second": 833.3333333333334,
                "acceptable": true
            },
            "update_performance": {
                "operation_count": 200,
                "operation_time": 0.7,
                "ops_per_second": 285.7142857142857,
                "acceptable": true
            },
            "complex_query": {
                "operation_count": 50,
                "operation_time": 0.6,
                "ops_per_second": 83.33333333333334,
                "acceptable": true
            }
        },
        "rate_limiting": {
            "moloni_api_limit": {
                "requests": 60,
                "timeframe": 60,
                "expected_delay": 1,
                "actual_delay": 1.05,
                "compliant": true
            },
            "burst_protection": {
                "requests": 10,
                "timeframe": 5,
                "expected_delay": 0.5,
                "actual_delay": 0.43,
                "compliant": true
            }
        },
        "concurrent_operations": {
            "oauth_and_sync": {
                "operations": [
                    "oauth",
                    "sync"
                ],
                "total_time": 0.10014510154724121,
                "success_rate": 100,
                "performance_acceptable": true
            },
            "queue_and_api": {
                "operations": [
                    "queue",
                    "api"
                ],
                "total_time": 0.10014986991882324,
                "success_rate": 100,
                "performance_acceptable": true
            },
            "multi_sync": {
                "operations": [
                    "sync",
                    "sync",
                    "sync"
                ],
                "total_time": 0.15159988403320312,
                "success_rate": 100,
                "performance_acceptable": true
            }
        },
        "error_recovery": {
            "api_timeout": {
                "error_rate": 0.05,
                "recovery_time": 2.86102294921875e-6,
                "recovery_success": true,
                "final_success_rate": 97,
                "acceptable": false
            },
            "network_error": {
                "error_rate": 0.02,
                "recovery_time": 9.5367431640625e-7,
                "recovery_success": true,
                "final_success_rate": 99.5,
                "acceptable": true
            },
            "rate_limit_hit": {
                "error_rate": 0.01,
                "recovery_time": 0,
                "recovery_success": true,
                "final_success_rate": 99.9,
                "acceptable": true
            },
            "auth_expired": {
                "error_rate": 0.005,
                "recovery_time": 9.5367431640625e-7,
                "recovery_success": true,
                "final_success_rate": 100,
                "acceptable": true
            }
        }
    },
    "performance_targets": {
        "max_sync_time": 30,
        "min_success_rate": 99.5,
        "max_memory_usage": 128,
        "max_api_response_time": 5
    },
    "summary": {
        "sync_within_30s": false,
        "success_rate_above_995": true,
        "memory_within_limits": true,
        "ready_for_production": true
    }
}