X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2FNormalizedNodeToNodeCodecTest.java;h=bdad86ddc1e8fb5521607fbb91a575a99e677d38;hb=ee146664ac8ae45439c14a84fe769633c3ebf847;hp=1b85d46fc6ebdfa9b13de079db728b9dadf2beac;hpb=00a9f11655358387b6048b0a427adc50e7df4672;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/NormalizedNodeToNodeCodecTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/NormalizedNodeToNodeCodecTest.java index 1b85d46fc6..bdad86ddc1 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/NormalizedNodeToNodeCodecTest.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/NormalizedNodeToNodeCodecTest.java @@ -78,8 +78,12 @@ public class NormalizedNodeToNodeCodecTest { NormalizedNodeToNodeCodec codec = new NormalizedNodeToNodeCodec(schemaContext); + long start = System.currentTimeMillis(); Container container = codec.encode(instanceIdentifierFromString(id), output); + long end = System.currentTimeMillis(); + + System.out.println("Timetaken to encode :"+(end-start)); assertNotNull(container); assertEquals(id, container.getParentPath() + "/" @@ -89,8 +93,12 @@ public class NormalizedNodeToNodeCodecTest { // first get the node representation of normalized node final Node node = container.getNormalizedNode(); + start = System.currentTimeMillis(); NormalizedNode normalizedNode = codec.decode(instanceIdentifierFromString(id), node); + end = System.currentTimeMillis(); + + System.out.println("Timetaken to decode :"+(end-start)); assertEquals(normalizedNode.getValue().toString(), output.getValue() .toString());