import { test } from 'node:test'
import assert from 'node:assert/strict'
import { runPerformanceBudget } from '../src/facade/performanceBudget'

test('performance budget executes deterministic object, triangle and table workloads', () => { const report = runPerformanceBudget({ objectCount: 100, triangleCount: 10_000, tableCells: 1_000, maxObjectMs: 10_000, maxTriangleMs: 10_000, maxTableMs: 10_000 }); assert.equal(report.objects.count, 100); assert.equal(report.triangles.count, 10_000); assert.equal(report.table.cells, 1_000); assert.equal(typeof report.triangles.checksum, 'number'); assert.equal(report.pass, true) })
