Docs: Update benchmark for google/gemini-3.5-flash

This commit is contained in:
github-actions[bot]
2026-05-19 23:06:38 +00:00
parent a037a78102
commit 1dfaf490cd
12 changed files with 389 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
export async function processCSV(csvString, config) {
const { filterColumn, filterValue, groupBy, aggregateColumn, operation } = config;
const { default: Papa } = await import('https://cdn.jsdelivr.net/npm/papaparse@5.4.1/+esm');
const { data } = Papa.parse(csvString, { header: true, skipEmptyLines: true });
const groups = {};
for (const row of data) {
if (row[filterColumn] == filterValue) {
const groupVal = row[groupBy];
groups[groupVal] = groups[groupVal] || { sum: 0, count: 0 };
groups[groupVal].sum += +row[aggregateColumn] || 0;
groups[groupVal].count++;
}
}
return Object.entries(groups).map(([key, { sum, count }]) => ({
[groupBy]: key,
result: operation === 'count' ? count : operation === 'sum' ? sum : sum / count
}));
}
export default processCSV;
// Generation time: 23.400s
// Result: PASS