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
<script src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js"></script>
<style type='text/css' rel='stylesheet'>
.hidden-display { display: none; } .hidden-visible { visibility: hidden; }
</style>
Ext.onReady(function() {
Ext.viewport = Ext.create('Ext.container.Viewport', {
layout: {
type: 'border'
},
items: [{
xtype: 'container',
hideMode: 'visibility',
region: 'center',
itemId: 'myContainer',
items: [{
xtype: 'container',
itemId: 'hide-display'
}, {
xtype: 'container',
itemId: 'hide-visibility',
hideMode: 'visibility'
}, {
xtype: 'container',
itemId: 'hide-offsets',
hideMode: 'offsets'
}]
}]
});
Ext.create('Ext.window.Window', {
itemId: 'window-display'
});
Ext.create('Ext.window.Window', {
itemId: 'window-destroy',
hideMode: 'destroy'
});
});
Ready to run.
Test | Ops/sec | |
---|---|---|
show/hide |
| ready |
add cls display none |
| ready |
add cls display visible |
| ready |
show/hide element |
| ready |
addCls/removeCls element |
| ready |
hideMode display |
| ready |
hideMode visibility |
| ready |
hideMode offsets |
| ready |
element style |
| ready |
element dom style |
| ready |
Test 11 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.