Docs: Update benchmark for deepseek/deepseek-v4-pro

This commit is contained in:
github-actions[bot]
2026-04-25 02:00:44 +00:00
parent bca9ba076b
commit d1bb37cfb3
12 changed files with 364 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
async function processCSV(csv, c) {
const { default: P } = await import(
'https://cdn.jsdelivr.net/npm/papaparse@5/+esm'
);
const { filterColumn: f, filterValue: v, groupBy: g, aggregateColumn: a, operation: o } = c;
const rows = P.parse(csv, { header: true, skipEmptyLines: true }).data;
const filtered = rows.filter((r) => r[f] == v);
const groups = {};
for (const r of filtered) {
const k = r[g];
groups[k] = groups[k] || { n: 0, s: 0 };
groups[k].n++;
groups[k].s += +r[a] || 0;
}
return Object.entries(groups).map(([k, { n, s }]) => ({
[g]: k,
result: o === 'sum' ? s : o === 'avg' ? s / n : n,
}));
}
export default processCSV;
// Generation time: 75.337s
// Result: PASS