Docs: Update benchmark for moonshotai/kimi-k2.6

This commit is contained in:
github-actions[bot]
2026-04-21 18:04:18 +00:00
parent 4dd5b479d3
commit d68ffe48d0
12 changed files with 706 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
async function processCSV(csv,{filterColumn,filterValue,groupBy:g,aggregateColumn,operation}){
const[Papa,{groupBy,sum}]=await Promise.all([
import('https://esm.sh/papaparse@5.4.1').then(m=>m.default),
import('https://esm.sh/lodash-es@4.17.21')
]);
const{data}=Papa.parse(csv,{header:true,skipEmptyLines:true});
const filtered=data.filter(r=>r[filterColumn]==filterValue);
const groups=groupBy(filtered,r=>r[g]);
return Object.entries(groups).map(([k,v])=>{
const n=v.map(r=>+r[aggregateColumn]||0);
const result=operation==='sum'?sum(n):operation==='avg'?sum(n)/n.length:v.length;
return{[g]:k,result};
});
}
export default processCSV;
// Generation time: 205.075s
// Result: PASS