Lines Matching defs:out

80 		System.out.println("Read " + aChristmasCarol.length() + " bytes in " + PerformanceTest.time(x,y));

82 System.out.println();
83 System.out.println("**** DELETE PLAN TEST ****");
84 System.out.println();
95 System.out.println("Delete plan length: " + k);
103 stat(System.out, stats0, "ns", "[String]");
104 stat(System.out, stats1, "ns", "[StringBuffer]");
105 stat(System.out, stats2, "ns", "[Rope]");
109 System.out.println();
110 System.out.println("**** PREPEND PLAN TEST ****");
111 System.out.println();
120 System.out.println("Prepend plan length: " + k);
129 stat(System.out, stats0, "ns", "[String]");
130 stat(System.out, stats1, "ns", "[StringBuffer]");
131 stat(System.out, stats2, "ns", "[Rope]");
132 stat(System.out, stats3, "ns", "[Text]");
136 System.out.println();
137 System.out.println("**** APPEND PLAN TEST ****");
138 System.out.println();
148 System.out.println("Append plan length: " + k);
156 stat(System.out, stats0, "ns", "[String]");
157 stat(System.out, stats1, "ns", "[StringBuffer]");
158 stat(System.out, stats2, "ns", "[Rope]");
163 System.out.println();
164 System.out.println("**** INSERT PLAN TEST ****");
165 System.out.println("* Insert fragments of A Christmas Carol back into itself.\n");
177 System.out.println("Insert plan length: " + k);
186 stat(System.out, stats0, "ns", "[String]");
187 stat(System.out, stats1, "ns", "[StringBuffer]");
188 stat(System.out, stats2, "ns", "[Rope]");
189 stat(System.out, stats3, "ns", "[Text]");
193 System.out.println();
194 System.out.println("**** INSERT PLAN TEST 2 ****");
195 System.out.println("* Insert fragments of Benjamin Franklin's Autobiography into\n" +
212 stat(System.out, stats0, "ns", "[String]");
213 stat(System.out, stats1, "ns", "[StringBuffer]");
214 stat(System.out, stats2, "ns", "[Rope]");
217 System.out.println();
218 System.out.println("**** TRAVERSAL TEST 1 (SIMPLY-CONSTRUCTED DATASTRUCTURES) ****");
219 System.out.println("* A traversal test wherein the datastructures are simply\n" +
224 System.out.println();
234 stat(System.out, stats0, "ns", "[String]");
235 stat(System.out, stats1, "ns", "[StringBuffer]");
236 stat(System.out, stats2, "ns", "[Rope/charAt]");
237 stat(System.out, stats3, "ns", "[Rope/itr]");
240 System.out.println();
241 System.out.println("**** TRAVERSAL TEST 2 (COMPLEXLY-CONSTRUCTED DATASTRUCTURES) ****");
242 System.out.println("* A traversal test wherein the datastructures are complexly\n" +
247 System.out.println();
258 stat(System.out, stats0, "ns", "[String]");
259 stat(System.out, stats1, "ns", "[StringBuffer]");
260 stat(System.out, stats2, "ns", "[Rope/charAt]");
261 stat(System.out, stats3, "ns", "[Rope/itr]");
262 stat(System.out, stats4, "ns", "[Text/charAt]");
265 System.out.println();
266 System.out.println("**** REGULAR EXPRESSION TEST (SIMPLY-CONSTRUCTED DATASTRUCTURES) ****");
267 System.out.println("* Using a simply-constructed rope and the pattern 'Crachit'.");
280 stat(System.out, stats0, "ns", "[String]");
281 stat(System.out, stats1, "ns", "[StringBuffer]");
282 stat(System.out, stats2, "ns", "[Rope]");
283 stat(System.out, stats3, "ns", "[Rope.matcher]");
284 stat(System.out, stats4, "ns", "[Text]");
287 System.out.println();
288 System.out.println("**** REGULAR EXPRESSION TEST (SIMPLY-CONSTRUCTED DATASTRUCTURES) ****");
289 System.out.println("* Using a simply-constructed rope and the pattern 'plea.*y'.");
300 stat(System.out, stats0, "ns", "[String]");
301 stat(System.out, stats1, "ns", "[StringBuffer]");
302 stat(System.out, stats2, "ns", "[Rope]");
303 stat(System.out, stats3, "ns", "[Rope.matcher]");
306 System.out.println();
307 System.out.println("**** REGULAR EXPRESSION TEST (COMPLEXLY-CONSTRUCTED DATASTRUCTURES) ****");
308 System.out.println("* Using a complexly-constructed rope and the pattern 'Crachit'.");
321 stat(System.out, stats0, "ns", "[String]");
322 stat(System.out, stats1, "ns", "[StringBuffer]");
323 stat(System.out, stats2, "ns", "[Rope]");
324 stat(System.out, stats3, "ns", "[Reblncd Rope]");
325 stat(System.out, stats4, "ns", "[Rope.matcher]");
326 stat(System.out, stats5, "ns", "[Text]");
329 System.out.println();
330 System.out.println("**** STRING SEARCH TEST ****");
331 System.out.println("* Using a simply constructed rope and the pattern 'Bob was very\n" +
342 stat(System.out, stats0, "ns", "[String]");
343 stat(System.out, stats1, "ns", "[StringBuffer]");
344 stat(System.out, stats2, "ns", "[Rope]");
347 System.out.println();
348 System.out.println("**** STRING SEARCH TEST (COMPLEXLY-CONSTRUCTED DATASTRUCTURES)****");
349 System.out.println("* Using a complexly constructed rope and the pattern 'consumes faster\n" +
360 stat(System.out, stats0, "ns", "[String]");
361 stat(System.out, stats1, "ns", "[StringBuffer]");
362 stat(System.out, stats2, "ns", "[Rope]");
366 System.out.println();
367 System.out.println("**** WRITE TEST ****");
368 System.out.println("* Illustrates how to write a Rope to a stream efficiently.");
376 stat(System.out, stats0, "ns", "[Out.write]");
377 stat(System.out, stats1, "ns", "[Rope.write]");
388 System.out.printf("[String.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
399 System.out.printf("[StringBuffer.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
410 System.out.printf("[Rope.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
420 System.out.printf("[String.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
430 System.out.printf("[StringBuffer.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
440 System.out.printf("[Rope.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
447 Writer out = new StringWriter(complexRope.length());
450 complexRope.write(out);
455 System.out.printf("[Rope.write] Executed write in % ,18d ns.\n", (y-x));
462 Writer out = new StringWriter(complexRope.length());
465 out.write(complexRope.toString());
470 System.out.printf("[Out.write] Executed write in % ,18d ns.\n", (y-x));
475 final CharArrayWriter out = new CharArrayWriter(467196);
481 out.write(c, 0, x);
483 out.close();
484 return out.toCharArray();
488 final CharArrayWriter out = new CharArrayWriter(182029);
494 out.write(c, 0, x);
496 out.close();
497 return out.toCharArray();
512 System.out.printf("[Rope] Executed append plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
528 System.out.printf("[Rope] Executed delete plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
545 System.out.printf("[Rope] Executed insert plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
563 System.out.printf("[Text] Executed insert plan in % ,18d ns. Result has length: %d.\n", (y-x), result.length());
581 System.out.printf("[Rope] Executed insert plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
597 System.out.printf("[Rope] Executed prepend plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
613 System.out.printf("[Text] Executed prepend plan in % ,18d ns. Result has length: %d.\n", (y-x), result.length());
626 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
639 System.out.printf("[Rope/itr] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
652 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
665 System.out.printf("[Text/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
678 System.out.printf("[Rope/itr] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
694 System.out.printf("[String] Executed append plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
710 System.out.printf("[StringBuffer] Executed append plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
726 System.out.printf("[StringBuffer] Executed delete plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
743 System.out.printf("[StringBuffer] Executed insert plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
761 System.out.printf("[StringBuffer] Executed insert plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
777 System.out.printf("[StringBuffer] Executed prepend plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
790 System.out.printf("[StringBuffer] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
804 System.out.printf("[StringBuffer] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
820 System.out.printf("[String] Executed delete plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
838 System.out.printf("[String] Executed insert plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
856 System.out.printf("[String] Executed insert plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
872 System.out.printf("[String] Executed prepend plan in % ,18d ns. Result has length: %d\n", (y-x), result.length());
885 System.out.printf("[String] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
898 System.out.printf("[String] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
913 System.out.printf("[String] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
928 System.out.printf("[Text] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
943 System.out.printf("[StringBuffer] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
958 System.out.printf("[Rope] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
973 System.out.printf("[Rope.matcher] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
989 System.out.printf("[String] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1005 System.out.printf("[Text] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1019 System.out.printf("[StringBuffer] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1033 System.out.printf("[Rope] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1048 System.out.printf("[Reblncd Rope] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1062 System.out.printf("[Rope.matcher] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1070 private static void stat(PrintStream out, long[] stats, String unit, String prefix) {
1081 out.printf("%-14s Average=% ,16.0f %s Median=% ,16.0f%s\n", prefix, average, unit, median, unit);