Test name | Executions per second |
---|---|
forEach (Native) | 505592.6 Ops/sec |
each (jQuery) | 371058.8 Ops/sec |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link rel="stylesheet" href="style.min.css" type="text/css">
<link rel="stylesheet" href="style.min.css" type="text/css">
<link rel="stylesheet" href="style.min.css" type="text/css">
<link rel="stylesheet" href="style.min.css" type="text/css">
<link rel="stylesheet" href="style.min.css" type="text/css">
var linkEls = document.querySelectorAll('link[href*=".min.css"]');
[].forEach.call(linkEls,function(el){});
$('link[href*=".min.css"]').each(function(){});