ExtJS create vs define-create

JavaScript performance comparison

Revision 10 of this test case created by Mimi Flynn

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js">
</script>
<script src="https://cdn.sencha.io/ext-4.1.0-gpl/ext-all.js">
</script>
<div id='render'></div>
    

Preparation code output

<script src="https://cdn.sencha.io/ext-4.1.0-gpl/ext-all.js"> </script> <div id='render'></div>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Ext.create
Ext.create('Ext.Panel',{html:'hi', renderTo: 'render'});
pending…
Ext.define
Ext.define('MyPanel',{extends:'Ext.Panel', html:'hi'});
Ext.create('MyPanel',{renderTo: 'render'});
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL.

0 Comments