long s2 = System.currentTimeMillis();
Node n2 = t2.transform(is2, null);
long s3 = System.currentTimeMillis();
d1 += s2 - s1; // from plain xml
d2 += s3 - s2; // from fastinfoset
Node2OutputStream t3 = new Node2OutputStream();
Node2FastInfoset t4 = new Node2FastInfoset();
ByteArrayOutputStream os1 = new ByteArrayOutputStream();
ByteArrayOutputStream os2 = new ByteArrayOutputStream();
long s4 = System.currentTimeMillis();
t3.transform(n1, os1, null);
long s5 = System.currentTimeMillis();
t4.transform(n2, os2, null);
long s6 = System.currentTimeMillis();
d1 += s5 - s4; // to plain xml
d2 += s6 - s5; // to fastinfoset