Can you compare the performance of using virtual DOM versus direct DOM manipulation in web apps, and explain the workings of virtual DOM?

Free for the first 3 answer contributors

Interview question asked to Frontend Engineers interviewing at Zendesk, Atlassian, Rockstar Games and others: Can you compare the performance of using virtual DOM versus direct DOM manipulation in web apps, and explain the workings of virtual DOM?.