ExtJs store vs Mixed Collection (v11)

Revision 11 of this benchmark created on


Preparation HTML

<script type='text/javascript' src="http://cdn.sencha.com/ext/gpl/4.1.1/ext-all.js">
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
storeadd
store = Ext.create('Ext.data.Store', {
  fields: ["key1"]
});

for (var i = 0; i < 2000; i++){
store.add({
  key1: 'val1'
});
}
ready
store
arr = [];

for (var i = 0; i < 2000; i++){
    arr.push({
      key1: 'val1'
   });
}

store = Ext.create('Ext.data.Store', {
  fields: ["key1"],
  data: arr
});
ready

Revisions

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