diff --git a/gemini.html b/gemini.html
index a448bc4..1551581 100644
--- a/gemini.html
+++ b/gemini.html
@@ -30,9 +30,11 @@
const genTimes=await fetch('./results.json').then(r=>r.json());
const models=readme.match(/\n([\s\S]+?)\n/)[1].trim().split('\n').filter(Boolean);
const tests=[...new Set(Object.values(genTimes).flatMap(Object.keys))].sort();
+ const tStats={};
for(const model of models){
const sModel=model.replace(/[\/:]/g,'_');
+ const temp=model.split('TEMP:')[1]?.trim();
const card=document.createElement('section');
card.className='rounded-2xl border border-gray-200 bg-white shadow-sm overflow-hidden';
card.innerHTML=`
`;
@@ -55,7 +57,6 @@
await Promise.race([
(async()=>{
const tMod=await import(`./tests/${test}/test.js`);
- // Import from dedicated gemini output folder
const lMod=await import(`./tests/${test}/outputs_gemini/${sModel}.js`);
await tMod.default.runTest(lMod.default);
})(),
@@ -66,12 +67,20 @@
li.innerHTML=`${status} ${test}${time.toFixed(3)}s`;
}
const ratio=tests.length?passed/tests.length:0;
+ if(temp){tStats[temp]??={p:0,t:0};tStats[temp].p+=passed;tStats[temp].t+=tests.length}
const grade=gradeOf(ratio);
const scoreLi=document.createElement('li');
scoreLi.className='mt-3 pt-3 border-t border-gray-200 flex items-center text-sm justify-between';
scoreLi.innerHTML=`Score${passed}/${tests.length}${grade}`;
list.appendChild(scoreLi);
}
+ if(Object.keys(tStats).length){
+ const best=Object.entries(tStats).sort(([,a],[,b])=>b.p/b.t-a.p/a.t)[0];
+ 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=`Best Temperature
${best[0]}
Pass Rate: ${((best[1].p/best[1].t)*100).toFixed(1)}%
`;
+ container.appendChild(statDiv);
+ }
})();