The performance test below compares 3 types of removeClass:
n.removeClass('foo').removeClass('bar');
n.removeClass('foo bar');
n.removeClass('foo bar');
Each test removes multiple classes including a non-existing class, next it removes a single class, then a class already removed, then a single class again.
Choose the number of nodes for each test and the number of times these nodes will be tested.
* choose a smaller number of nodes if your test gets stucked (old browsers)