122123124125126127128129130131
System.out.println("ERR " + k); break; } s.stop(); } sw.done(); sw.print(); } }
114115116117118119120121122123124
for (int i = 0; i < RUN_ITER; ++i) { Stop s = sw.start(); wr.bufferWrite(); s.stop(); } sw.done(); sw.print(); wr.clean(); sw.begin(true); System.out.println("directWrite");
125126127128129130131132133134135
for (int i = 0; i < RUN_ITER; ++i) { Stop s = sw.start(); wr.directWrite(); s.stop(); } sw.done(); sw.print(); wr.clean(); sw.begin(true); System.out.println("randomWrite");
136137138139140141142143144145146
for (int i = 0; i < RUN_ITER; ++i) { Stop s = sw.start(); wr.randomWrite(); s.stop(); } sw.done(); sw.print(); wr.clean(); sw.begin(true); System.out.println("channelWrite");
147148149150151152153154155156157
for (int i = 0; i < RUN_ITER; ++i) { Stop s = sw.start(); wr.channelWrite(); s.stop(); } sw.done(); sw.print(); wr.clean(); SystemUtil.sleep(1000); wr.clean();
107108109110111112113114115116117
} group.list(); ThreadUtil.sleep(2000); System.out.println("Done."); sw.done(); sw.print(); disp.shutdown(); ThreadUtil.sleep(2000); group.list();