biff 2026-11-27

How does wrap-profiling avoid getting its timing stats thrown off by long-running SSE handlers?

Just looked into this and I probably do need to fix something there. Basically each page load gets counted twice: the initial, "regular" load which results in an accurate time, and the subsequent SSE load. the latter one actually gets reported with a too-fast load time number since the ring handler returns immediately/without doing any rendering, and then the rendering happens in a streaming object thing that jetty handles. so in effect, the reported p50 is either the min time or completely meaningless, and p90 is really p80, etc

the reported times for biff.graph resolvers is accurate at least

Thanks. I don’t have any issues with it - was just browsing the code and wondering. It’s wonderful to have this sort of profiling available out of the box!

🙌 1