Ten events hide the growth
transcript
Three handlers. One batch. Test them on ten events. Handler B looks cheapest. Ship it? Not yet.
At ten events, handler A makes seventy steps. Handler B makes forty five. Handler C makes forty. Handler B beats A. It looks like a clear pick.
Now a thousand events. Handler A makes three thousand forty steps. Handler B makes four hundred ninety nine thousand five hundred. That is a hundred sixty four times more than A.
Where does the order flip? At thirteen events B still wins. At fourteen, A wins for good. A test at ten events sits below the flip.
One size cannot show growth. Measure at two sizes. Compare how the work changes. Then choose.
Small inputs favour small terms. Setup and constants dominate at ten events. Growth shows only at scale. So test at two sizes, far apart.
One size cannot show growth. Full breakdown in the lecture.