The best way to control Claude Code, Codex and more from any computer or phone

main
ts 36 lines 1.11 KB
Raw
1 import type { LineChartSpec } from "./lineChart.ts";
2
3 /**
4 * Backfill scaling, measured on Cloudflare by
5 * `packages/integration-tests/test/Cloudflare/Domain/CatchUp.scale.test.ts`
6 * (2026-10-31): accounts with 10 deposits each, then a deploy that rebuilds a
7 * view per account. "Before" is the first design, where each account routed
8 * its own history (`CatchUp.bench.test.ts`, 2026-10-29).
9 */
10 export const backfillCharts = {
11 timeByWidth: {
12 title: "How long the deploy waits, by number of accounts",
13 x: { label: "Accounts, 10 deposits each", ticks: [10_000, 100_000, 1_000_000], log: true },
14 y: { label: "Seconds", ticks: [0, 300, 600, 900, 1200] },
15 unit: "s",
16 series: [
17 {
18 name: "Before: accounts route their own history",
19 points: [
20 [10_000, 353],
21 [100_000, 1048],
22 ],
23 },
24 {
25 name: "A run over the directory",
26 points: [
27 [10_000, 13],
28 [100_000, 58],
29 [1_000_000, 481],
30 ],
31 },
32 ],
33 },
34 } satisfies Record<string, LineChartSpec>;
35
36 export type BackfillChart = keyof typeof backfillCharts;