Skip to content

Commit

Permalink
docs: notes from chat w/Richard
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Oct 15, 2024
1 parent 9da5430 commit fe1619a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/orchestration/test/examples/quickSend-perf.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* advance parameters:
rate of new requests per block
distribution of requests over unique addresses (uniform vs. power-law(b))
delay, in blocks, between CCTP request and noble mint (for settlement)
background work, unrelated to Fast USDC
probably assume 0, at least initially



NEW
1:49
resulting measurements:
maximum sustainable load at steady state
#blocks to recover from unsustainably high load
*/

const runSim = async ({ fanout, mintDelay }) => {
let maxSustainable;

// TODO: mintDelay
for (let rate = 1; ; rate += 1) {
const something = scheduleReports(rate, fanout);
scheduleMints(something);
const policy = computronCounter(); // see line 266 of launch-chain.js
const leftover = controller.run(); // runKernel / handleNextBlock
if (leftover.length > 0) {
maxSustainable = rate;
break;
}
}

return { maxSustainable, recoveryBlocks };
};

0 comments on commit fe1619a

Please sign in to comment.