dojo.require("dojo.data.ItemFileWriteStore"); dojo.provide("dojox.grid.tests.performance._gridPerfFramework"); (function(){ // some sample data var data_list = [ { col1: "normal", col2: false, col3: "new", col4: 'But are not followed by two hexadecimal', col5: 29.91, col6: 10, col7: false }, { col1: "important", col2: false, col3: "new", col4: 'Because a % sign always indicates', col5: 9.33, col6: -5, col7: false }, { col1: "important", col2: true, col3: "read", col4: 'Signs can be selectively', col5: 19.34, col6: 0, col7: true }, { col1: "note", col2: false, col3: "read", col4: 'However the reserved characters', col5: 15.63, col6: 0, col7: true }, { col1: "normal", col2: true, col3: "replied", col4: 'It is therefore necessary', col5: 24.22, col6: 5.50, col7: true }, { col1: "important", col2: false, col3: "replied", col4: 'To problems of corruption by', col5: 9.12, col6: -3, col7: true }, { col1: "note", col2: false, col3: "replied", col4: 'Which would simply be awkward in', col5: 12.15, col6: -4, col7: false } ]; // default querystring values var default_obj = {rows: "100", layout: "single", rowSelector: "false", doProfiling: "false"}; // values for the performance tests var iterations = 100; var duration = 100; var delay = 100; // Store functions var stores = {}; dojo.setObject("getStore", function(numRows, force){ if(force){ delete stores[numRows]; } if(!stores[numRows]){ var data = { identifier: 'id', label: 'id', items: [] }; for(var i=0, l=data_list.length; i