Add/update filtered-sum-bms benchmark

This commit is contained in:
2026-06-06 18:00:20 +00:00
parent 2944683db9
commit 260d5fa4a5
8045 changed files with 2651026 additions and 270206 deletions

View File

@@ -0,0 +1,14 @@
import fs from 'fs';
const dataset = JSON.parse(fs.readFileSync('dataset.json', 'utf-8'))
const pricePerPerformance = dataset.map((item) => {
return {
...item,
costPer1k: item.spotPrice / (item.vcpus * (item.cpuSpeed / 1000)),
workloadCost10k100: (item.spotPrice / (item.vcpus * (item.cpuSpeed / 1000))) * 10 * 100,
}
}).sort((a, b) => a.costPer1k - b.costPer1k);
console.log(pricePerPerformance.slice(0, 10));