We analyze numerically macroscopic models of crowd dynamics: classical Hughes model and the second order model being an extension to pedestrian motion of the Payne-Whitham vehicular traffic model. The desired direction of motion is determined by solving an eikonal equation with density dependent running cost function standing for minimization of the travel time and avoidance of congested areas. We apply a mixed finite volume-element method to solve the problems and present error analysis in case of the eikonal solver, gradient computation and the second order model yielding a first order convergence. We show that Hughes' model is incapable of reproducing complex crowd dynamics such as stop-and-go waves and clogging at bottlenecks. Finally, using the second order model, we study numerically the evacuation of pedestrians from a room through a narrow exit. In particular, we analyze the effect on the total evacuation time of the level of compression, the desired speed and the presence of obstacles.