ExtJS create vs define-create

JavaScript performance comparison

Revision 5 of this test case created

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js">
</script>
<script src="//cdn.sencha.io/ext-4.1.0-gpl/ext-all.js">
</script>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Ext.create
 Ext.create('Ext.data.Model', {
fields: [
        { name: 'DataSectionCd', type: 'string' },
        { name: 'text', type: 'string' },
        { name: 'IsHistorical', type: 'boolean' }
    ]
        });
pending…
Ext.define
Ext.define('FileUploads.model.DataSection', {
    extend: 'Ext.data.Model',
    fields: [
        { name: 'DataSectionCd', type: 'string' },
        { name: 'text', type: 'string' },
        { name: 'IsHistorical', type: 'boolean' }
    ]
});
Ext.create('FileUploads.model.DataSection');
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. Here’s a list of current revisions for this page:

0 comments

Add a comment