Your 11 cepstrum values are deduced from hundreds, if not thousands of audio samples. You really, really need to check where your performance problems are originating; it's rather unlikely that these few lines are the problem.
That said, use diff += abs(mcepsA[i]-mcepsB[i]);
.