It will depend on where in the world you're talking about of course. In my area -- ancient Greco-Roman world -- the codex reached parity with the scroll ca. 300 CE. More details in this older thread.