Lab / failure

The speedup that wasn't

I claimed my C++ port of SAM 3 ran 1.29× faster than Meta's PyTorch reference. The two sides weren't doing the same work. Matched, the port was 1.24× slower.

Measurement, Negative resultsProteus
Machine
not noted
Same work on both sides, C++ port vs Meta's PyTorch reference (bf16)
111.16 vs 89.64 ms per frame, 1.24× slower
Proposals per row in the withdrawn comparison, port vs Meta
80 vs 16

I once claimed my C++ port of SAM 3 ran 1.29× faster than Meta's own PyTorch reference. Then I looked at how the two sides had been run.

The port had been tracking 80 candidate objects per row and Meta's side 16. That isn't a race. The ratio was measuring the setup.

With the same work on both sides, the port took 111.16 ms a frame against 89.64 ms for Meta's reference in bf16: 1.24× slower. I didn't note which machine.

The 1.29× isn't in the table on purpose.