jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
change underscore version to last.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js">
</script>
var arr = 'disable|customer_group|text|title|link_type|link_page|link_category|link_custom|link_target|description|ID|classes|attr|trigger|hide_text|hide_link|hide_caret|wrap_label|thumb|thumb_image|thumb_image_width|thumb_image_height|thumb_icon|thumb_icon_size|thumb_align|width_by|width_by_columns|column_gutter|width_by_specific|hide_submenu|submenu_type|submenu_mega_align|submenu_flyout_align|submenu_width|submenu_min_width|hide_content|content|color|bgcolor|color_active|bgcolor_active|submenu_bgcolor|hide_mobile|hide_regular|hide_submenu_mobile|hide_submenu_regular'.split('|');
var e = null;
function Named(o, i) {
e = o;
};
function Name2(i, o) {
e = o;
};
var forEach = function(a, c) {
var l = a.length;
for (var i = 0; i < l; i++) c(a[i], i)
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Jquery each |
| ready |
Underscore each |
| ready |
For normal |
| ready |
For reversed |
| ready |
Native array forEach |
| ready |
Native array forEach with Named function |
| ready |
custom forEach |
| ready |
custom forEach 2 |
| ready |
custom forEach Named |
| ready |
Jquery each Named |
| ready |
Underscore each Named |
| ready |
For normal Named |
| ready |
custom forEach asm.js Named |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.