Back to Trialloom

STUDY · AI-WRITTEN CODE · 15 NOVEMBER 2026

Testing five AI-written shortest-path routines

An AI model produced an incremental shortest-path routine and four follow-up fixes. Each version was tested against an exact Floyd-Warshall reference and benchmarked against conventional code.

Open interactive Repair 3 explorer

Method

After single edge additions or deletions, each candidate returned shortest-path distances from a source vertex. Test sets covered every labelled graph up to 5 vertices, adversarial topologies (chains, rings, stars, bridges), random edit streams, and two social graphs.

Recorded outcomes

VersionWrong answers (of 55,924 edits)Facebook graph runtime
Original AI version9,793392 ms
AI repair 10374 ms
AI repair 224,58585 ms
AI repair 310,090392 ms
AI repair 40382 ms
Conventional incremental reference059 ms
Full recomputation baseline0642 ms

Timings show medians over five runs of 64 random edits on the 4,039-node Facebook graph.

Main findings

Repository and timestamps

Workload commit SHA: 03aee5b923a2305d4735d1400ab6b3b91813aecc. Recorded 15 November 2026 between 22:34 and 22:38 UTC (23:34-23:38 in Geneva).