diff --git a/gemini.html b/gemini.html index b9306a9..0cef6be 100644 --- a/gemini.html +++ b/gemini.html @@ -78,11 +78,25 @@ } if(stats.length){ const max=Math.max(...stats.map(x=>x.r)); - const best=stats.filter(x=>x.r===max); - const optimal=(best.reduce((a,c)=>a+c.t,0)/best.length).toFixed(2); + const best=stats.filter(x=>x.r===max).sort((a,b)=>a.t-b.t); + const l=best.length; + const med=((best[(l-1)>>1].t+best[l>>1].t)/2).toFixed(2); + const avg=(best.reduce((a,c)=>a+c.t,0)/l).toFixed(2); + const statDiv=document.createElement('div'); statDiv.className='mt-8 p-6 bg-white rounded-2xl border border-gray-200 shadow-sm text-center'; - statDiv.innerHTML=`