Docs: Update benchmark for z-ai/glm-5.1

This commit is contained in:
github-actions[bot]
2026-04-07 18:55:08 +00:00
parent e331b73dae
commit e7b9bb1a9c
12 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
async function processCSV(csv, { filterColumn: fc, filterValue: fv, groupBy: gb, aggregateColumn: ac, operation: op }) {
const { default: P } = await import("https://cdn.jsdelivr.net/npm/papaparse@5/+esm")
const rows = P.parse(csv, { header: true, skipEmptyLines: true }).data.filter(r => r[fc] == fv)
const groups = rows.reduce((a, r) => ((a[r[gb]] ??= []).push(r), a), {})
return Object.entries(groups).map(([k, v]) => {
const sum = v.reduce((s, r) => s + (Number(r[ac]) || 0), 0)
return { [gb]: k, result: op == 'count' ? v.length : op == 'sum' ? sum : sum / v.length }
})
}
export default processCSV;
// Generation time: 46.157s
// Result: PASS