Will qDebug cost time when CONFIG += console is not set?

qDebug() print out text messages on the console, according to what I know print out text message is expensive.
But if I dont set CONFIG += console, will it still cost time?
Otherwise I need to comment it one by one by hand?