seriesoftubes/tests
Frederic Jung 1b691ca9af
Supply chain: hardware prices drift up, shortages come and go, spares and price locks
hwMul() scales new purchases of routers (routerCost, swapCost), optics
(optCost, on top of tariffs) and own builds (dfBuildCost, ownCabCost):
free for 180 days, then +4%/year, capped at +30%. Monthly costs of what
you own do not move.

Shortages are a new random event after day 180, never two at once:
optics +50%, routers +40% or builds +30%, for 45-75 days. Counter-moves:
stock spare optics from a dark fiber link at today's price, or buy a
365-day price lock from the NOC (80k + 30k per POP, double during a
shortage), which freezes today's trend and ignores shortages.

Measured on a 16-POP European network ($530k/mo revenue): the curve
adds ~5% of revenue a year in year 1 and ~23% by year 5 if every dollar
is reinvested in hardware; a lock costs about a month of revenue.
2026-10-27 09:25:47 +01:00
..
fixtures Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
helpers Routing reference test runs on today's routing loop; perf bench reads exported saves 2026-10-26 08:40:20 +01:00
build.test.js Fix map wrap, touch and keyboard input; harden build and release workflow; docs 2026-10-23 17:56:34 +02:00
game.test.js The broadband panel shows each city's real price per gigabit and real revenue, not the base rate 2026-10-27 11:56:55 +10:00
harness.js Add Italian translation and a language switch 2026-10-24 21:52:27 +02:00
i18n.test.js French: a top-bar label that fits on a phone 2026-10-26 15:16:09 +01:00
inbox.test.js PNIs: usually a month, 15% stuck for 6-12 months; routes sometimes sold out of a wave size 2026-10-27 08:54:12 +01:00
issues.test.js Don't repeat the city after an exchange that is named after it (#134) 2026-10-27 07:30:02 +00:00
latency.test.js Far-away transit backhaul is slow, and slow is bad service 2026-10-26 23:29:49 +01:00
levels.test.js Router trade-ins, one swap a day, and speed-based requirements (#82) 2026-10-25 21:49:51 +01:00
modes.test.js RouteScript: AI button, help page and ready-made scripts 2026-10-26 21:44:59 +01:00
peering.test.js Add Crowdflare Rackstar embedded caches 2026-10-26 20:33:20 -05:00
perf.test.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
persist.test.js Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
regions.test.js The South Island joins the map, old Australian saves hear what changed, crowded POP names wait for zoom 2026-10-27 07:22:31 +01:00
routing-reference.test.js Routing reference test runs on today's routing loop; perf bench reads exported saves 2026-10-26 08:40:20 +01:00
sea-routing.test.js Sea routing: Suez and Panama crossings, great circles, fastest design back on par 2026-10-26 22:13:16 +01:00
services.test.js Stack a carrier's alien waves on one fiber into one contract 2026-10-26 23:48:34 +01:00
speed.test.js Routing makes far less garbage: no temporary arrays or closures in its hot loop 2026-10-26 13:41:13 +01:00
subsea-upgrade-timing.test.js Fix subsea upgrade scheduling and add one-click construction rush 2026-10-26 22:47:13 +00:00
supply.test.js Supply chain: hardware prices drift up, shortages come and go, spares and price locks 2026-10-27 09:25:47 +01:00