import { deriveQuoteOutcomeRecords } from './src/core/quote-outcomes.mjs'; const submissions = Array.from({length: 2000}).map((_, i) => ({ quote_id: 'q' + i, submitted_at: new Date().toISOString(), expected_inventory_delta: { asset1: 10n } })); const inventorySnapshots = Array.from({length: 5000}).map((_, i) => ({ inventory_id: 'i' + i, observed_at: new Date(Date.now() + i * 1000).toISOString(), asset_balances: { asset1: BigInt(i * 10) } })); console.time('derive'); deriveQuoteOutcomeRecords({ submissions, inventorySnapshots }); console.timeEnd('derive');