import java.io.*; import java.nio.*; import java.nio.charset.*; public class TimeCharset { public static void main(String args[]) throws Exception { String data = "abcdef1234"; int limit = 10000000; System.out.println("Doing " + limit + " iterations of each."); long t1, t2; t1 = System.currentTimeMillis(); for (int i=0; i