このjsperfテストのスニペットの1つが他のスニペットよりも大幅に遅いように見える理由を理解しようとしています.
これらは 4 つのスニペットです。
$(".menu-vertical li.selected > ul.static").show().parents().show();
$('ul.root').find('li.selected').children('ul.static').show().parents().show();
$("ul.root li.selected > ul.static").show().parents().show();
$('ul.root li.selected').children('ul.static').show().parents().show();
2 番目のものは、すべてのブラウザで一貫して遅いようで、その理由がわかりません。