I doubt whether the use of "How are you doing?" is the same as "How do you do?"
"How do you do?" is what you would say when introduced to someone you don't know.
"How are you doing?" is something you might say to someone who is performing a task, and you are enquiring as to how much they feel they have it all under control.