endl has an extra expensive flush() operation
27.7.3.8 Standard Basic_ostream Manipulators [ostream.manip]
namespace std { template <class charT, class traits> basic_ostream<charT,traits>& endl(basic_ostream<charT,traits>& os); } 1 Effects: Calls os.put(os.widen('\n')), then os.flush(). 2 Returns: os.
billz source share