seriesoftubes/tests
Hugues 456062284f Faster days on big networks: look fiber customers up by link id
compute(), the daily mood check and new alien-wave/fiber-pair offers asked
S.links.find() or S.biz.filter() once per customer or per link. On a save
with 2,950 links and 18,000 customers (16,000 alien waves) that was ~150 ms
per compute, ~250 ms more per day, and ~650 ms when a wave offer spawned.

linkIds() and fiberUse() build the lookups in one pass; fiberOk, bizSf,
soldSlots, freeCh and pairFree take them optionally, and give the same
answers as before (first link with the id wins, sums in S.biz order).

Player save (202 POPs, 2,958 links, 17,967 customers), median of 15:
compute 323 -> 124 ms, dayTick 545 -> 133 ms, after 356 -> 149 ms.
Big-network fixture: unchanged. Routing results identical to main.
2026-10-27 12:26:10 +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 Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01: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 Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
i18n.test.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
inbox.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
issues.test.js City density rule: retire 15 crowded Brazilian cities from new games 2026-10-27 10:09:12 +01: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
pages.test.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
peering.test.js Add Crowdflare Rackstar embedded caches 2026-10-26 20:33:20 -05:00
perf.test.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
persist.test.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
regions.test.js City density rule: retire 15 crowded Brazilian cities from new games 2026-10-27 10:09:12 +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 Faster days on big networks: look fiber customers up by link id 2026-10-27 12:26:10 +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