The question is whether this a performance problem or a bug in the quiz module or something else. Start by increasing the debug level. See http://docs.moodle.org/en/Debugging
If it is not a performance problem, go to the dedicated forum "Quiz module" http://moodle.org/mod/forum/view.php?id=737
Hardware and performance
Problem Submitting Quiz
This discussion has been locked so you can no longer reply to it.