37 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
42 var filterArray1 = newGuidArray(library);
43 filterArray1.addSort(SBProperties.genre,
true);
46 filterArray1.fetchSize = 0;
47 filterArray1.isDistinct =
true;
51 var filterArray2 = filterArray1.clone();
52 filterArray2.clearSorts();
53 filterArray2.addSort(SBProperties.albumName,
true);
55 var filterArray3 = filterArray1.clone();
56 filterArray3.clearSorts();
57 filterArray3.addSort(SBProperties.artistName,
true);
59 var playlistArray = filterArray1.clone();
60 playlistArray.clearSorts();
61 playlistArray.addSort(SBProperties.artistName,
true);
62 playlistArray.fetchSize = 300;
63 playlistArray.isDistinct =
false;
67 for each (var
array in [filterArray1, filterArray2, filterArray3, playlistArray]) {
68 array.getGuidByIndex(0);
function perfTest(library, timer)
function runPerfTest(aName, aTestFunc)
function runTest()
Test file.
function StringArrayEnumerator(aArray)