It depends on a bunch of factors and the most important is how that particular strain of yeast sticks to itself. Wyeast 1272 is a notorious top-croppers which forms loose clumps that can be puffed up with CO2 at the surface, and for which it is recommended to shake the fv every couple of days to get the yeast back into the wort. At the other end of the scale are things like WLP002, which forms dense clumps in the wort and compacts firmly to the bottom.
Also important are pitching rate, temperature and the gravity, fermentability and composition of the wort, as well as batch size and the geometry of the fermentation vessel. Worts that are more nutritious, have higher gravity, are more fermentable or are fermented at a higher temperature, tend to have large krausens as the fermentation is more active, producing more turbulence to bring yeast to the surface and produce more CO2 bubble to push the yeast up into the growing krausen and provide the gaseous phase of the foam. The deeper and narrower the fv, or the larger the batch in the same fv, the more these factors are concentrated onto the available surface. While these factors affect the rate of krausen growth, they are counterbalanced by the rate of dissipation, which can be slowed by things which stabilise the foam such as the proteins in wheat beers (I suspect that some of the top-croppyness reported from from hefe strains like WLP300 is actually due to this). The krausen is also stabilised by the walls of the fv, so narrower fvs and the necks of DJs keep the krausen hanging around for longer.
Some styles are more prone to having bigger krausens than others, with the most notorious being the Imperial stout. The heafty pitching rate of vigorous yeast and the large highly fermentable sugar content coming from the low temperature mash gives a massive initial rate of fermentation, which can increase the temperature and increase fermentation rate even further. Add to this all the foam stabilising material that comes from a large grain bill with a good dose of speciality malt, and you'll want to give yourself
plenty of head space. Otherwise:
https://www.youtube.com/watch?v=UgfubawsrcM