Docs: Update Gemini benchmark results

This commit is contained in:
github-actions[bot]
2025-11-18 19:30:39 +00:00
parent 51a98c1e1b
commit 76fb066932
133 changed files with 2340 additions and 0 deletions
@@ -0,0 +1,13 @@
export const processCSV = async (csv, { filterColumn: fc, filterValue: fv, groupBy: gb, aggregateColumn: ac, operation: op }) => {
const { csvParse, rollups, sum } = await import('https://cdn.jsdelivr.net/npm/d3@7/+esm')
return rollups(
csvParse(csv).filter(d => d[fc] == fv),
g => {
const s = sum(g, d => +d[ac] || 0)
return op === 'count' ? g.length : op === 'sum' ? s : s / g.length
},
d => d[gb]
).map(([k, v]) => ({ [gb]: k, result: v }))
}
export default processCSV;