for (int count = 1; count <= 10; count++) {
System.out.println("Iteration #" + count);
long t1 = System.nanoTime();
MutableCharArray cv = Arrays.SystemSettings.globalMemoryModel().newEmptyCharArray();
if (doEnsureCapacity > 0)
cv.ensureCapacity(n * w.length());
for (int k = 0; k < n; k++)
cv.append(w);
long t11 = System.nanoTime();
String s1 = Arrays.asCharSequence(cv).toString();
long t2 = System.nanoTime();