pdateProgress(); // Initial update
    progressInterval = setInterval(updateProgress, 2000);
}

async function updateProgress() {
    if (!currentBenchmarkId) return;

    try {
        const response = await fetch(`/benchmark/api/status/${currentBenchmarkId}`);
        const data = await response.json();

        if (data.success) {
            const status = data.status;

            // Update progress bar
            const percentage = status.total_examples > 0 ?
                (status.completed_example