From d1ea7b482649ee7b3fb032fbaf69a947b5cbc6cf Mon Sep 17 00:00:00 2001 From: bmixed <2+bmixed@noreply.localhost> Date: Mon, 27 Jul 2026 00:45:14 +0000 Subject: [PATCH] Upload files to "/" --- csvc.html | 6 +++++- csvd.html | 6 +++++- csvp.html | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/csvc.html b/csvc.html index f86451b..c6d8dd0 100644 --- a/csvc.html +++ b/csvc.html @@ -206,6 +206,9 @@ const LIMIT = 1000; const results = []; + // Total search time only + const t0 = performance.now(); + try { setStatus(`searching for "${term}"...`); outEl.textContent = `Searching: "${term}"`; @@ -282,7 +285,8 @@ `Found ${results.length} match(es) for "${term}" (showing up to ${LIMIT}):\n\n` + lines.join("\n"); } - setStatus("done."); + const t1 = performance.now(); + setStatus(`done. Search time: ${(t1 - t0).toFixed(0)} ms`); } catch (e) { console.error(e); setStatus("failed."); diff --git a/csvd.html b/csvd.html index 94ffa39..b7207f2 100644 --- a/csvd.html +++ b/csvd.html @@ -209,6 +209,9 @@ // Build a quick lookup for headers by file name const headersByFile = new Map(datasets.map(d => [d.fileName, d.headers])); + // Total search time only + const t0 = performance.now(); + try { setStatus(`searching for "${term}"...`); outEl.textContent = `Searching: "${term}"`; @@ -298,7 +301,8 @@ lines.join("\n\n"); } - setStatus("done."); + const t1 = performance.now(); + setStatus(`done. Search time: ${(t1 - t0).toFixed(0)} ms`); } catch (e) { console.error(e); setStatus("failed."); diff --git a/csvp.html b/csvp.html index 89c33c3..da09fcf 100644 --- a/csvp.html +++ b/csvp.html @@ -206,6 +206,9 @@ const LIMIT = 1000; const results = []; + // Total search time only + const t0 = performance.now(); + // Build a quick lookup for headers by file name const headersByFile = new Map(datasets.map(d => [d.fileName, d.headers])); @@ -355,7 +358,8 @@ lines.join("\n\n"); } - setStatus("done."); + const t1 = performance.now(); + setStatus(`done. Search time: ${(t1 - t0).toFixed(0)} ms`); } catch (e) { console.error(e); setStatus("failed.");