arrayInArray

Benchmark created by su-pa.net on


Setup

var arrAllText = [
  ["1", 2, 12, 1],	// [statisch]
  ["2", 2, 6, 2],
  ["3", 2, 6, 3],
  ["4", 2, 4, 4],
  ["5", 2, 8, 1],
  ["6", 5, 8, 2],
  ["7", 9, 6, 3],
  ["8", 2, 8, 4],
  ["9", 2, 7, 1],
  ["10", 2, 6, 2],
  ["11", 1, 6, 3],	//[statisch]
  ["12", 1, 6, 9],	//Foto mood
  ["13", 2, 6, 1],
  ["14", 1, 6, 2],	//[statisch]
  ["15", 2, 12, 3],	//[1x], ev. Pause
  ["16", 2, 6, 4],
  ["17", 2, 4, 1],
  ["18", 2, 5, 2],
  ["19", 1, 6, 3],	//offen: Foto wiederholen. [1x] (ev. Pause)
  ["20", 3, 4, 4],
  ["21", 2, 5, 1],
  ["22", 1, 6, 2],	//[statisch]
  ["23", 1, 6, 9],	//Foto mood
  ["24", 2, 12, 4],	//[1x]
  ["25", 5, 10, 1],
  ["26", 5, 10, 2],	//[1x]
  ["27", 9, 12, 3],	//[1x] - wenn mgl. PAUSE
  ["28", 2, 8, 4],
  ["29", 2, 10, 1],	//[1x]
  ["30", 2, 6, 2],
  ["31", 2, 5, 3],
  ["32", 1, 6, 4],	//[statisch]
  ["33", 1, 6, 1],
  ["34", 1, 6, 2],
  ["35", 2, 6, 3],
  ["36", 1, 6, 4],
  ["37", 2, 5, 2],
  ["38", 1, 6, 2],
  ["39", 2, 8, 3],
  ["40", 1, 6, 4],
  ["41", 1, 6, 1],
  ["42", 2, 8, 2],
  ["43", 2, 12, 3],	//[1x]
  ["44", 1, 6, 4],
  ["45", 1, 6, 1],
  ["46", 1, 6, 9],	//Foto mood
  ["47", 1, 6, 3],
  ["48", 1, 6, 4],
  ["49", 2, 10, 1],
  ["50", 1, 6, 2],	//[statisch]
  ["51", 2, 6, 3],	//[2x]
  ["52", 2, 6, 4],
  ["53", 1, 6, 1],	//Foto neu machen
  ["54", 2, 6, 2],
  ["55", 2, 6, 3],	//[1x]
  ["56", 1, 6, 4],
  ["57", 5, 12, 1],	//[1x]
  ["58", 1, 6, 3],
  ["59", 1, 6, 3],
  ["60", 5, 12, 4],
  ["61", 1, 6, 1],
  ["62", 1, 6, 2],	//[statisch]
  ["63", 1, 6, 9],	//Foto mood
  ["64", 1, 6, 4],
  ["65", 3, 9, 1],
  ["66", 2, 6, 2],
  ["67", 2, 10, 3],
  ["68", 5, 6, 4],
  ["69", 2, 12, 1],
  ["70", 2, 12, 2],
  ["71", 2, 12, 3],
  ["72", 2, 6, 4],
  ["73", 2, 12, 1],
  ["74", 2, 12, 2],
  ["75", 1, 6, 3],
  ["76", 1, 6, 4],	//[statisch]
  ["77", 2, 12, 1],	//[2x]
  ["78", 2, 12, 2],	//[1x]
  ["79", 2, 6, 3],
  ["80", 1, 6, 4],
  ["81", 2, 6, 1],
  ["82", 1, 6, 1],    //[statisch]
  ["83", 1, 6, 3],    //[statisch]
  ["84", 2, 8, 1],
  ["85", 1, 6, 2]
  ];
  var txtImpressionImgs = [
  ["1", 2, 12, 1],	// [statisch]
  ["2", 2, 6, 2],
  ["3", 2, 6, 3],
  ["4", 2, 4, 4],
  ["5", 2, 8, 1],
  ["6", 5, 8, 2],
  ["7", 9, 6, 3],
  ["8", 2, 8, 4],
  ["9", 2, 7, 1],
  ["10", 2, 6, 2],
  ["11", 1, 6, 3],	//[statisch]
  ["12", 1, 6, 9],	//Foto mood
  ["13", 2, 6, 1],
  ["14", 1, 6, 2],	//[statisch]
  ["15", 2, 12, 3],	//[1x], ev. Pause
  ["16", 2, 6, 4],
  ["17", 2, 4, 1],
  ["18", 2, 5, 2],
  ["19", 1, 6, 3],	//offen: Foto wiederholen. [1x] (ev. Pause)
  ["20", 3, 4, 4],
  ["21", 2, 5, 1],
  ["22", 1, 6, 2],	//[statisch]
  ["23", 1, 6, 9],	//Foto mood
  ["24", 2, 12, 4],	//[1x]
  ["25", 5, 10, 1],
  ["26", 5, 10, 2],	//[1x]
  ["27", 9, 12, 3],	//[1x] - wenn mgl. PAUSE
  ["28", 2, 8, 4],
  ["29", 2, 10, 1],	//[1x]
  ["30", 2, 6, 2],
  ["31", 2, 5, 3],
  ["32", 1, 6, 4],	//[statisch]
  ["33", 1, 6, 1],
  ["34", 1, 6, 2],
  ["35", 2, 6, 3],
  ["36", 1, 6, 4],
  ["37", 2, 5, 2],
  ["38", 1, 6, 2],
  ["39", 2, 8, 3],
  ["40", 1, 6, 4],
  ["41", 1, 6, 1],
  ["42", 2, 8, 2],
  ["43", 2, 12, 3],	//[1x]
  ["44", 1, 6, 4],
  ["45", 1, 6, 1],
  ["46", 1, 6, 9],	//Foto mood
  ["47", 1, 6, 3],
  ["48", 1, 6, 4],
  ["49", 2, 10, 1],
  ["50", 1, 6, 2],	//[statisch]
  ["51", 2, 6, 3],	//[2x]
  ["52", 2, 6, 4],
  ["53", 1, 6, 1],	//Foto neu machen
  ["54", 2, 6, 2],
  ["55", 2, 6, 3],	//[1x]
  ["56", 1, 6, 4],
  ["57", 5, 12, 1],	//[1x]
  ["58", 1, 6, 3],
  ["59", 1, 6, 3],
  ["60", 5, 12, 4],
  ["61", 1, 6, 1],
  ["62", 1, 6, 2],	//[statisch]
  ["63", 1, 6, 9],	//Foto mood
  ["64", 1, 6, 4],
  ["65", 3, 9, 1],
  ["66", 2, 6, 2],
  ["67", 2, 10, 3],
  ["68", 5, 6, 4],
  ["69", 2, 12, 1],
  ["70", 2, 12, 2],
  ["71", 2, 12, 3],
  ["72", 2, 6, 4],
  ["73", 2, 12, 1],
  ["74", 2, 12, 2],
  ["75", 1, 6, 3],
  ["76", 1, 6, 4],	//[statisch]
  ["77", 2, 12, 1],	//[2x]
  ["78", 2, 12, 2],	//[1x]
  ["79", 2, 6, 3],
  ["80", 1, 6, 4],
  ["81", 2, 6, 1],
  ["82", 1, 6, 1],    //[statisch]
  ["83", 1, 6, 3],    //[statisch]
  ["84", 2, 8, 1],
  ["85", 1, 6, 2]
  ];

Test runner

Ready to run.

Testing in
TestOps/sec
onlyChangeAffectedValues
for (var i = 0; i < arrAllText.length; i++) {
        arrAllText[i][1] = txtImpressionImgs[i][1];
        arrAllText[i][2] = txtImpressionImgs[i][2];
        arrAllText[i][3] = txtImpressionImgs[i][3];
        arrAllText[i][4] = txtImpressionImgs[i][4];
        arrAllText[i][5] = txtImpressionImgs[i][5];
}
ready
changeAllResetOne
for (var i = 0; i < arrAllText.length; i++) {
        var tmpVal = arrAllText[i][0];
        arrAllText[i] = txtImpressionImgs[i];
        arrAllText[i][0] = tmpVal;
}
ready

Revisions

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

  • Revision 1: published by su-pa.net on