seriesoftubes/tests
Frederic Jung a428ed817f
Routing keeps its structural tables between calls and runs its hot loops as small functions, identical results
compute() was one 33 KB function that V8 never kept optimised: it ran in baseline code, boxing every number,
and was recompiled in the background (about a second of compile each time on a loaded machine) only to deopt.
Its stages now run as closures of their own (compute's own bytecode: 7.7 KB) and the money is computeMoney().
The shortest paths and the exit lists (okBy, reach, BRJ/LIST, DSEL) are kept between calls under keys built
from everything they depend on (29-route-cache.js). Exits and paths have one object shape each.
The equivalence tests compare cached against uncached routing; tests/route-cache.test.js checks the keys.
2026-11-01 19:04:17 +01:00
..
fixtures Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
helpers Routing loop: keep flows in typed-array columns instead of objects, and add up link and transit totals without boxing numbers 2026-11-01 14:27:45 +01:00
any-home-city.test.js Title screen: language first, name on top, compact presets, one home-city drawer 2026-10-29 11:31:46 +01:00
architect.test.js Puzzle list: each section counts its own stars (#231) 2026-10-31 07:25:57 +01:00
automation.test.js Tests: #185 sales and repair run as standing orders; batches open from the Ops sheet 2026-10-28 17:46:16 +01:00
backbone-core.test.js Backbone rewards: L3VPN, flex-algo and slice customers, fast reroute, interop lab, four badges 2026-10-31 09:20:49 +01:00
badges-variants.test.js Badge upgraded toast follows the collection on this device 2026-10-28 19:34:41 +01:00
build.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
cable-labels.test.js Merge #214-#217: Manila, Cebu and Davao (fmcglinn) 2026-10-31 14:11:12 +01:00
cable-ships.test.js A waiting subsea cut offers a charter only when it beats waiting for the club's first ship home 2026-11-01 11:52:42 +00:00
cache-ports.test.js 400G cache boxes behind 400G or faster router ports 2026-11-01 11:37:34 +01:00
capacity-deals.test.js Merge #156: look fiber customers up by link id (huguesdelamure) 2026-10-27 20:34:01 +01:00
chaos-monkey.test.js NOC notices that would open the NOC get no Open button (#226) 2026-10-31 07:31:22 +01:00
city-size.test.js Map: cities show their size, and crowded small ones step back to a dot 2026-10-31 11:36:48 +01:00
compute-idempotent.test.js Billing: a recompute after the day tick no longer counts today's 95th-percentile sample twice 2026-10-28 20:42:08 +01:00
ddos-floods.test.js DDoS rework: tests for the new model, Flood Season and its weekly at level 4, routing reference fix 2026-10-31 12:51:15 +01:00
ddos-model.test.js DDoS rework: tests for the new model, Flood Season and its weekly at level 4, routing reference fix 2026-10-31 12:51:15 +01:00
direct-egress.test.js Prefer keeps the say at its own POP only, and the direct ranks stop slowing the game day 2026-11-01 20:07:23 +11:00
durations.json tests/durations.json: seconds per test file, so the four CI parts take about the same time 2026-10-31 14:23:42 +01:00
eyeballs.test.js Tests, CHANGELOG and docs for the peering desk 2026-10-29 21:41:28 +01:00
fiber-broker.test.js Consortium seats take regen sites; the broker sells listings as the market wants (#203) 2026-10-31 08:32:05 +01:00
find-city.test.js Find a city: a search box in the HUD and on / that jumps the map there (closes #218) 2026-10-31 13:57:35 +01:00
focus-link.test.js Inspecting a link moves the map to it 2026-10-31 14:53:11 +00:00
game.test.js Restore what the merge from main dropped from the carrier's own transit port 2026-10-31 23:28:30 +11:00
gameplay-rules.test.js M3: the day's rule checks now live in its two halves, dayPre() and dayPost() 2026-11-01 16:39:35 +01:00
gangnam.test.js Tests: Gangnam reference hauls from Tokyo; Seoul-only, Tokyo-only and the old plan fail 2026-10-29 20:59:17 +01:00
glowball-sakura-lager.test.js Save slots: several networks per browser, one per window, with a cross-window guard 2026-10-28 20:52:47 +01:00
harness.js Save slots: tests for migration, two windows, take-over, stale writes, delete, import/export, puzzles 2026-10-29 07:05:11 +01:00
i18n.test.js Backbone technology: plain IGP, LDP, RSVP-TE, SR-MPLS, SRv6; two new RSVP-TE routers 2026-10-31 08:27:31 +01:00
islands-and-arctic.test.js Caribbean, Indian Ocean, Pitcairn, Alaska and Russia's Far East; more US and Australian eyeballs (#125, #152, #124, #145, #155, #154) 2026-10-27 21:34:09 +01:00
issues.test.js Doitsche Telekomm and Tangerine Telecom are Tier 1s (#194) 2026-11-01 12:23:33 +00:00
language-picker.test.js Save slots: several networks per browser, one per window, with a cross-window guard 2026-10-28 20:52:47 +01:00
latency.test.js Fix the padded yellow progress bars 2026-10-27 20:42:12 +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
link-metrics.test.js Put a link on standby; the routing metric stays per city pair (#122) 2026-10-28 07:11:47 +01:00
link-trial.test.js Redundancy check routes once, against the live routing (#62) 2026-10-28 19:47:19 +01:00
load-time.test.js Requirements: build the possible-diversity map on city indices 2026-10-29 07:05:23 +01:00
metric-panel.test.js Custom metric panel updates on Safari after switching multiplier and cost (#131) 2026-10-28 19:38:55 +01:00
modes.test.js DDoS rework: tests for the new model, Flood Season and its weekly at level 4, routing reference fix 2026-10-31 12:51:15 +01:00
more-cables.test.js Subsea cables stay at sea: fix the date-line wrap and routes across land (#183) 2026-10-28 06:17:39 +01:00
moscow-premium.test.js China Telecomet's premium crossing in Moscow, at the Hong Kong price (#195) 2026-10-28 14:13:15 +01:00
networks-list.test.js The Networks list shows 100 networks at a time 2026-10-29 11:13:59 +01:00
new-game-speed.test.js Save slots: several networks per browser, one per window, with a cross-window guard 2026-10-28 20:52:47 +01:00
optic-counts.test.js A fiber given up keeps its optics: they go on the spares shelf (#229) 2026-10-31 07:15:35 +01:00
own-asn.test.js Pick your own AS number next to the name; a round green arrow for another name (#135) 2026-10-29 18:59:07 +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-desk.test.js Tests, CHANGELOG and docs for the peering desk 2026-10-29 21:41:28 +01:00
peering.test.js Connections overview prices 400G cache boxes right; tests pin 100G boxes where they mean them 2026-11-01 12:06:20 +01: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 Save slots: several networks per browser, one per window, with a cross-window guard 2026-10-28 20:52:47 +01:00
philippines.test.js Philippines: Cebu and Davao get connectivity estimates, RISE & Shine stays off the Pacific route, W44 par 2026-10-31 15:00:26 +01:00
pni-all.test.js Bulk PNI test fills the ports now that caches share them (#252) 2026-11-01 11:32:29 +01:00
pni-global.test.js Backbone technology: plain IGP, LDP, RSVP-TE, SR-MPLS, SRv6; two new RSVP-TE routers 2026-10-31 08:27:31 +01:00
pni-list.test.js PNI list: tests and changelog (#175, #172) 2026-10-29 19:07:44 +01:00
pnis-and-sold-out.test.js Sold-out wave sizes can't be reached by upgrading a smaller wave (#201) 2026-10-30 18:21:14 +01:00
pop-standard.test.js A standard POP: new POPs get the standard router model and count at once (closes #240) 2026-11-01 11:32:29 +01:00
puzzle-monkey.test.js Puzzles: the chaos monkey acts out the N-1 star in every puzzle 2026-10-30 12:24:53 +01:00
puzzles.test.js Puzzle speed test: time the fastest of 7 evaluations, so a busy CI runner cannot fail it 2026-11-01 18:09:52 +01:00
regions.test.js Doitsche Telekomm and Tangerine Telecom are Tier 1s (#194) 2026-11-01 12:23:33 +00:00
release-story.test.js Release notes: a story for big releases, and the 2.0 story 2026-10-30 16:28:19 +01:00
report-link.test.js Test the menu's small GitHub and chat links 2026-10-29 21:40:19 +01:00
route-cache.test.js Routing keeps its structural tables between calls and runs its hot loops as small functions, identical results 2026-11-01 19:04:17 +01:00
route-skip.test.js Clicks that change nothing routing reads keep their routing (loans do reroute); CHANGELOG corrected 2026-11-01 18:36:52 +01:00
route-worker.test.js Merge remote-tracking branch 'origin/main' into perf/3-worker 2026-11-01 16:14:07 +01:00
router-art.test.js Routers: the picture in the POP overview's header, left of the city name 2026-10-30 15:48:49 +01:00
routers-per-pop.test.js Allow up to 16 routers per POP, with a cage extension past six (#157) 2026-10-27 18:48:58 +01:00
routing-reference.test.js Routing keeps its structural tables between calls and runs its hot loops as small functions, identical results 2026-11-01 19:04:17 +01:00
rules-locked.test.js Saves get the rules of their mode, whatever their rules say 2026-10-29 07:01:18 +01:00
rules.test.js Tests, CHANGELOG and docs for the peering desk 2026-10-29 21:41:28 +01:00
sales-trial.test.js Sales trial: run the pass with the offer first, and skip the other when it cannot change the answer 2026-10-28 19:14:51 +01:00
save-size.test.js Save slots: several networks per browser, one per window, with a cross-window guard 2026-10-28 20:52:47 +01:00
save-slots.test.js Damaged saves are retried by the next version and have a Try again button; imports up to 64 MB 2026-11-01 13:08:43 +01:00
scenarios-playtest.test.js DDoS rework (#242): world-sized floods on customers, spread over every port, RTBH per target, Flowspec rule budgets, magnet scrubbing, new NOC card 2026-10-31 12:20:14 +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 Rework DDoS generation, mitigation accounting and NOC reporting 2026-10-27 13:00:57 +00:00
specialist.test.js Tests for specialist play, and gameplay rule F3: specialist paths only bring servable customers 2026-10-29 19:12:44 +01:00
speed.test.js Routing keeps its structural tables between calls and runs its hot loops as small functions, identical results 2026-11-01 19:04:17 +01:00
standing-orders.test.js 400G cache boxes behind 400G or faster router ports 2026-11-01 11:37:34 +01:00
subsea-upgrade-timing.test.js Cable ships: club repair ships sail out to subsea cuts, private charters jump the queue, lay ships build your cables 2026-11-01 11:24:53 +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
tier1-cone.test.js Doitsche Telekomm and Tangerine Telecom are Tier 1s (#194) 2026-11-01 12:23:33 +00:00
tier1-incumbents.test.js Doitsche Telekomm and Tangerine Telecom are Tier 1s (#194) 2026-11-01 12:23:33 +00:00
useless-subsea-upgrades.test.js Submarine upgrades that change nothing on a cable can't be bought (#198) 2026-10-29 01:57:32 +00:00
utilities-caches.test.js Free caches scale with demand: more boxes once one per site is not enough (closes #248) 2026-10-31 15:57:46 +01:00
utilities.test.js Tests, CHANGELOG and docs for the peering desk 2026-10-29 21:41:28 +01:00
weekly-architect.test.js Weekly Architect runs: sites outgrow their tubes, and a countdown 2026-10-30 14:07:45 +01:00
weekly-puzzle.test.js Weekly puzzle: schema 2 with traffic, sized references, regenerated weeks 2026-10-29 10:50:04 +01:00
weekly-scenario.test.js DDoS rework: tests for the new model, Flood Season and its weekly at level 4, routing reference fix 2026-10-31 12:51:15 +01:00