The Call Center Doctors: 1-877-766-3765

t04: Make it fast -- GPT-6.1 Sol vs Claude Opus 5.5

Cartoon: the golden octopus mascotCartoon: the orange sun mascot

Make a Python log report at least 10 times faster without changing a single result.

Opus: 106.5 s. Sol: 242.5 s. Sol took 2.3 times as long.

Opus (s)Sol (s)

  1. 106.5242.5

Hidden tests: Opus 5 of 5, Sol 5 of 5.

Blind judge pick: Sol (clear).

Why the judge picked

"Solution B [Sol] achieves the performance goal while keeping the code clean and modular, whereas Solution A [Opus] duplicates the parsing logic by inlining it. B [Sol] also uses a highly elegant and efficient fast-path for tracking the slowest requests using natural tuple comparison."

The judge on Opus

"An exceptionally well-crafted optimization that achieves massive speedups while perfectly preserving exact behavior and edge cases."

The judge on Sol

"Excellent optimization using dictionaries for grouping and a bounded sorted list for the top-N slowest requests, achieving massive speedups while maintaining exact equivalence."