Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-922

Add a benchmark project to compare with other IO frameworks

    Details

      Description

      Add a project that is able to perform benchmarks against MINA and other IO frameworks (Netty,...) to compare performances

      1. DIRMINA-922.diff
        8 kB
        Jeff MAURY
      2. mina-benchmarks.zip
        12 kB
        Jeff MAURY
      3. NettyServer.patch
        13 kB
        Jeff MAURY

        Activity

        Hide
        jeffmaury Jeff MAURY added a comment -

        A MIna sub-project under the 2.0 branch that perform 2 tests: 1 million messages exchange with size of 10K and 64K.
        As of yet, only Mina client and server are implemented, Netty to come soon

        Show
        jeffmaury Jeff MAURY added a comment - A MIna sub-project under the 2.0 branch that perform 2 tests: 1 million messages exchange with size of 10K and 64K. As of yet, only Mina client and server are implemented, Netty to come soon
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Many thanks !

        I'll add the module in the project.

        Show
        elecharny Emmanuel Lecharny added a comment - Many thanks ! I'll add the module in the project.
        Hide
        elecharny Emmanuel Lecharny added a comment -

        There are some missing headers, and one is containing @author Syspertec Java Dev Team...

        Show
        elecharny Emmanuel Lecharny added a comment - There are some missing headers, and one is containing @author Syspertec Java Dev Team...
        Hide
        elecharny Emmanuel Lecharny added a comment -

        The 64Mo test is timing out. I have restricted it to 1000 loops, which takes around the same time than the others. I also have added 2 more tests with smallest messages (10 bytes and 1Kb)

        Show
        elecharny Emmanuel Lecharny added a comment - The 64Mo test is timing out. I have restricted it to 1000 loops, which takes around the same time than the others. I also have added 2 more tests with smallest messages (10 bytes and 1Kb)
        Show
        elecharny Emmanuel Lecharny added a comment - Module added with http://svn.apache.org/viewvc?view=revision&revision=1417502
        Hide
        jeffmaury Jeff MAURY added a comment -

        I've added support for Netty client and added a test.
        I had to lower the test for large messages (64Mb) because Netty is very slow in this configuration so I changed the number of messages from 1000 to 100 in order to the test not to fail.
        I'm investigating why this is so

        Show
        jeffmaury Jeff MAURY added a comment - I've added support for Netty client and added a test. I had to lower the test for large messages (64Mb) because Netty is very slow in this configuration so I changed the number of messages from 1000 to 100 in order to the test not to fail. I'm investigating why this is so
        Hide
        elecharny Emmanuel Lecharny added a comment -

        I get this exception with the NettyvsMina test, when it runs with big messages :
        Dec 12, 2012 3:20:46 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler
        WARNING: EXCEPTION, please implement org.apache.mina.core.NettyBenchmarkClient$1$1.exceptionCaught() for proper handling.
        java.nio.channels.ClosedChannelException
        at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:249)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:440)
        at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$UnpooledSendBuffer.transferTo(SocketSendBufferPool.java:207)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:576)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromSelectorLoop(AbstractNioWorker.java:538)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:478)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:333)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

        Show
        elecharny Emmanuel Lecharny added a comment - I get this exception with the NettyvsMina test, when it runs with big messages : Dec 12, 2012 3:20:46 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler WARNING: EXCEPTION, please implement org.apache.mina.core.NettyBenchmarkClient$1$1.exceptionCaught() for proper handling. java.nio.channels.ClosedChannelException at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:249) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:440) at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$UnpooledSendBuffer.transferTo(SocketSendBufferPool.java:207) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:576) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromSelectorLoop(AbstractNioWorker.java:538) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:478) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:333) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
        Hide
        elecharny Emmanuel Lecharny added a comment -
        Show
        elecharny Emmanuel Lecharny added a comment - Patch applied with http://svn.apache.org/viewvc?rev=1420712&view=rev
        Hide
        jeffmaury Jeff MAURY added a comment -

        Added a Netty server and the 2 corresponding tests

        Show
        jeffmaury Jeff MAURY added a comment - Added a Netty server and the 2 corresponding tests
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Patch applied in 2.0.8 and in trunk.

        Many thanks !

        Show
        elecharny Emmanuel Lecharny added a comment - Patch applied in 2.0.8 and in trunk. Many thanks !

          People

          • Assignee:
            Unassigned
            Reporter:
            jeffmaury Jeff MAURY
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development