seriesoftubes/tests
Frederic Jung 4682f16730
Routing makes far less garbage: no temporary arrays or closures in its hot loop
The group split runs over an index range with one scratch array instead of
map/reduce/forEach and slice, leftover exits go into one reused array and are
sorted in place (insertion sort for short lists; both sorts are stable, so
the order is the same), flows are split without per-flow arrays, and the hot
loops use indexes instead of for...of. Without Auto-TE, exits whose path is
already full are not called at all. One routing pass on the big network
allocates 23 MB in Chromium instead of 66 MB.

Routing results are identical. The speed test's plain path now also uses the
original group split and sort, and a new test routes around a full 10G link
with Auto-TE (and a spill script) and compares both paths; planted bugs in
the split, the sort and both full-path skips are caught.

Big network vs main, two runs: headless routing -23% to -30%, Chromium
desktop -14% to -27%, phone -15% to -27%. Steps 2-4 together vs c76dd4d:
Chromium desktop routing -49%, phone -34%, a game day -26% and -30%.
2026-10-26 13:41:13 +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 Stricter credit, revenue share on big loans, weird new lenders and conditions 2026-10-25 15:50:28 +01:00
harness.js Add Italian translation and a language switch 2026-10-24 21:52:27 +02:00
i18n.test.js Add Portuguese (Brazil) translation 2026-10-25 19:58:05 -03:00
issues.test.js Let the 3.2T transponder fall back to 1.2T like the 1.6T one (#107) 2026-10-26 10:28:28 +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 Advertise the Signal group in the game and on GitHub 2026-10-26 07:41:50 +01:00
peering.test.js Merge pull request #18 from NickBouwhuis/add-fries-ix 2026-10-24 21:14:23 +02: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 African networks buy transit from Tier 1s 2026-10-26 08:13: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
services.test.js Add customers that connect over interconnection fabrics (1.16.0) 2026-10-25 06:29:33 +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