I do it gradually, takes about 3-5 secconds for me to go from 50% to Flex...
Any engine is subject to thermal shock and its not "healthy" in the long run to stress the engines more than necessary so why not go slow =)
sure if you are on a very short runway it might be advisable to advance the thrust-levers faster...