{
                    showAlert(`Benchmark ${status.status}`, 'error');
                }

                setTimeout(() => {
                    hideProgress();
                    currentBenchmarkId = null;
                }, 3000);
            }
        }
    } catch (error) {
        console.error('Error updating progress:', error);
    }
}

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

    try {
        const csrfToken = document.querySelector('meta[name="csrf-token"]').getAt