eolivelli commented on a change in pull request #1049: ZOOKEEPER-3475 Enable 
Checkstyle configuration on zookeeper-server
URL: https://github.com/apache/zookeeper/pull/1049#discussion_r314390603
 
 

 ##########
 File path: 
zookeeper-server/src/test/java/org/apache/zookeeper/server/SerializationPerfTest.java
 ##########
 @@ -56,70 +58,70 @@ static int createNodes(DataTree tree, String path, int 
depth,
         return count;
     }
 
-    private static void serializeTree(int depth, int width, int len)
-            throws InterruptedException, IOException, 
KeeperException.NodeExistsException, KeeperException.NoNodeException {
+    private static void serializeTree(int depth, int width, int len) throws 
InterruptedException, IOException, KeeperException.NodeExistsException, 
KeeperException.NoNodeException {
         DataTree tree = new DataTree();
         createNodes(tree, "/", depth, width, 
tree.getNode("/").stat.getCversion(), new byte[len]);
         int count = tree.getNodeCount();
 
-        BinaryOutputArchive oa =
-            BinaryOutputArchive.getArchive(new NullOutputStream());
+        BinaryOutputArchive oa = BinaryOutputArchive.getArchive(new 
NullOutputStream());
         System.gc();
         long start = System.nanoTime();
         tree.serialize(oa, "test");
         long end = System.nanoTime();
-        long durationms = (end - start)/1000000L;
-        long pernodeus = ((end - start)/1000L)/count;
-        LOG.info("Serialized " + count + " nodes in "
-                + durationms + " ms (" + pernodeus + "us/node), depth="
-                + depth + " width=" + width + " datalen=" + len);
+        long durationms = (end - start) / 1000000L;
+        long pernodeus = ((end - start) / 1000L) / count;
+        LOG.info("Serialized "
 
 Review comment:
    revert

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to