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