I don’t think that the type of document affects the rendering speed. But the structure and style of the HTML document will have.
A complex HTML document (a huge DOM tree, many built-in objects) with a complex style (float, positioning, margin, padding) will probably require several rendering traces. In addition, invalid HTML code, the browser will have to handle some errors for parsing and building the DOM tree (but this is not rendering).
Gecko reflow, , , Firefox Gecko HTML- ( mozilla.org, google.co.jp).