Lines Matching refs:PerformanceTest
2 * PerformanceTest.java
47 public class PerformanceTest {
50 private static Random random = new Random(PerformanceTest.seed);
75 final char[] aChristmasCarol_RAW = PerformanceTest.readCC();
76 final char[] bensAuto_RAW = PerformanceTest.readBF();
80 System.out.println("Read " + aChristmasCarol.length() + " bytes in " + PerformanceTest.time(x,y));
86 int newSize = PerformanceTest.lenCC;
89 deletePlan[j][0] = PerformanceTest.random.nextInt(newSize);
90 deletePlan[j][1] = PerformanceTest.random.nextInt(Math.min(100, newSize - deletePlan[j][0]));
99 stats0[j] = PerformanceTest.stringDeleteTest(aChristmasCarol, deletePlan);
100 stats1[j] = PerformanceTest.stringBufferDeleteTest(aChristmasCarol, deletePlan);
101 stats2[j] = PerformanceTest.ropeDeleteTest(aChristmasCarol, deletePlan);
115 prependPlan[j][0] = PerformanceTest.random.nextInt(PerformanceTest.lenCC);
116 prependPlan[j][1] = PerformanceTest.random.nextInt(PerformanceTest.lenCC - prependPlan[j][0]);
124 stats0[j] = PerformanceTest.stringPrependTest(aChristmasCarol, prependPlan, k);
125 stats1[j] = PerformanceTest.stringBufferPrependTest(aChristmasCarol, prependPlan, k);
126 stats2[j] = PerformanceTest.ropePrependTest(aChristmasCarol, prependPlan, k);
127 stats3[j] = PerformanceTest.textPrependTest(aChristmasCarol, prependPlan, k);
142 appendPlan[j][0] = PerformanceTest.random.nextInt(PerformanceTest.lenCC);
143 appendPlan[j][1] = PerformanceTest.random.nextInt(PerformanceTest.lenCC - appendPlan[j][0]);
152 stats0[j] = PerformanceTest.stringAppendTest(aChristmasCarol, appendPlan, k);
153 stats1[j] = PerformanceTest.stringBufferAppendTest(aChristmasCarol, appendPlan, k);
154 stats2[j] = PerformanceTest.ropeAppendTest(aChristmasCarol, appendPlan, k);
169 insertPlan[j][0] = PerformanceTest.random.nextInt(PerformanceTest.lenCC); //location to insert
170 insertPlan[j][1] = PerformanceTest.random.nextInt(PerformanceTest.lenCC); //clip from
171 insertPlan[j][2] = PerformanceTest.random.nextInt(PerformanceTest.lenCC - insertPlan[j][1]); //clip length
181 stats0[j] = PerformanceTest.stringInsertTest(aChristmasCarol_RAW, insertPlan, k);
182 stats1[j] = PerformanceTest.stringBufferInsertTest(aChristmasCarol_RAW, insertPlan, k);
183 stats2[j] = PerformanceTest.ropeInsertTest(aChristmasCarol_RAW, insertPlan, k);
184 stats3[j] = PerformanceTest.textInsertTest(aChristmasCarol_RAW, insertPlan, k);
200 insertPlan2[j][0] = PerformanceTest.random.nextInt(PerformanceTest.lenCC); //location to insert
201 insertPlan2[j][1] = PerformanceTest.random.nextInt(PerformanceTest.lenBF); //clip from
202 insertPlan2[j][2] = PerformanceTest.random.nextInt(PerformanceTest.lenBF - insertPlan2[j][1]); //clip length
208 stats0[j] = PerformanceTest.stringInsertTest2(aChristmasCarol, bensAuto, insertPlan2);
209 stats1[j] = PerformanceTest.stringBufferInsertTest2(aChristmasCarol, bensAuto, insertPlan2);
210 stats2[j] = PerformanceTest.ropeInsertTest2(aChristmasCarol, bensAuto, insertPlan2);
229 stats0[j] = PerformanceTest.stringTraverseTest(aChristmasCarol_RAW);
230 stats1[j] = PerformanceTest.stringBufferTraverseTest(aChristmasCarol_RAW);
231 stats2[j] = PerformanceTest.ropeTraverseTest_1(aChristmasCarol_RAW);
232 stats3[j] = PerformanceTest.ropeTraverseTest_2(aChristmasCarol_RAW);
252 stats0[j] = PerformanceTest.stringTraverseTest2(complexString);
253 stats1[j] = PerformanceTest.stringBufferTraverseTest2(complexStringBuffer);
254 stats2[j] = PerformanceTest.ropeTraverseTest2_1(complexRope);
255 stats3[j] = PerformanceTest.ropeTraverseTest2_2(complexRope);
256 stats4[j] = PerformanceTest.textTraverseTest2(complexText);
274 stats0[j] = PerformanceTest.stringRegexpTest(aChristmasCarol_RAW, p1);
275 stats1[j] = PerformanceTest.stringBufferRegexpTest(aChristmasCarol_RAW, p1);
276 stats2[j] = PerformanceTest.ropeRegexpTest(aChristmasCarol_RAW, p1);
277 stats3[j] = PerformanceTest.ropeMatcherRegexpTest(aChristmasCarol_RAW, p1);
278 stats4[j] = PerformanceTest.textRegexpTest(aChristmasCarol_RAW, p1);
295 stats0[j] = PerformanceTest.stringRegexpTest(aChristmasCarol_RAW, p1);
296 stats1[j] = PerformanceTest.stringBufferRegexpTest(aChristmasCarol_RAW, p1);
297 stats2[j] = PerformanceTest.ropeRegexpTest(aChristmasCarol_RAW, p1);
298 stats3[j] = PerformanceTest.ropeMatcherRegexpTest(aChristmasCarol_RAW, p1);
314 stats0[j] = PerformanceTest.stringRegexpTest2(complexString, p1);
315 stats1[j] = PerformanceTest.stringBufferRegexpTest2(complexStringBuffer, p1);
316 stats2[j] = PerformanceTest.ropeRegexpTest2(complexRope, p1);
317 stats3[j] = PerformanceTest.ropeRebalancedRegexpTest2(complexRope, p1);
318 stats4[j] = PerformanceTest.ropeMatcherRegexpTest2(complexRope, p1);
319 stats5[j] = PerformanceTest.textRegexpTest2(complexText, p1);
338 stats0[j] = PerformanceTest.stringFindTest(bensAuto_RAW, toFind);
339 stats1[j] = PerformanceTest.stringBufferFindTest(bensAuto_RAW, toFind);
340 stats2[j] = PerformanceTest.ropeFindTest(bensAuto_RAW, toFind);
356 stats0[j] = PerformanceTest.stringFindTest2(complexString, toFind);
357 stats1[j] = PerformanceTest.stringBufferFindTest2(complexStringBuffer, toFind);
358 stats2[j] = PerformanceTest.ropeFindTest2(complexRope, toFind);
373 stats0[j] = PerformanceTest.ropeWriteBad(complexRope);
374 stats1[j] = PerformanceTest.ropeWriteGood(complexRope);