Child pages
  • SpeedTester

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download the attached speedtester.tgz file - for example (wget --no-check-certificate https://confluence.opensource.anotheria.net/download/attachments/13763039/speedtester.tgz)
  2. Unpack it in a directory of your choice with

    Code Block
    tar -xzf speedtester.tgz

    command. Note, on mac Safari unpacks gziped files automatically.

  3. Change into speedtester directory.
  4. Start the server with

    Code Block
    ./startServer.sh

    . You will see some debug output:

    Code Block
    
    log4j:WARN No appenders could be found for logger (net.anotheria.anoprise.metafactory.ConfigurableResolver).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    skipping registration for org_distributeme_speedtester_TestingService
    Server org_distributeme_speedtester_TestingService is up and ready.
    

    Once you've seen last line, the server is ready (usually in the same second you started it).

  5. Open another terminal window, and change into the same directory (speedtester).
  6. Now start the client:

    Code Block
    ./startRemoteClient.sh localhost 9249

    . You will see something like this (output from my MBP):

    Code Block
    
    Testing with rmi://org_distributeme_speedtester_TestingService.xxx@localhost:9249
    Testing instance of org.distributeme.speedtester.generated.RemoteTestingServiceStub@c0b76fa
    connection established
    Testing echo calls
    	1 - echo calls, Performed 1000 in 311, 0.311 ms per call - OK
    Testing inbound packets, size 1000
    	2 - inbound packets with size 1000, Performed 1000 in 349, 0.349 ms per call - OK
    Testing inbound packets, size 10000
    	3 - inbound packets with size 10000, Performed 1000 in 368, 0.368 ms per call - OK
    Testing inbound packets, size 50000
    	4 - inbound packets with size 50000, Performed 1000 in 659, 0.659 ms per call - ACCEPTABLE
    Testing outbound packets, size 1000
    	5 - outbound packets with size 1000, Performed 1000 in 348, 0.348 ms per call - OK
    Testing outbound packets, size 10000
    	6 - outbound packets with size 10000, Performed 1000 in 402, 0.402 ms per call - OK
    Testing outbound packets, size 50000
    	7 - outbound packets with size 50000, Performed 1000 in 948, 0.948 ms per call - ACCEPTABLE
    Testing in and out bound packets, size 1000
    	8 - in-and-out bound packets with size 1000, Performed 1000 in 312, 0.312 ms per call - OK
    Testing in and out bound packets, size 10000
    	9 - in-and-out bound packets with size 10000, Performed 1000 in 451, 0.451 ms per call - OK
    Testing in and out bound packets, size 50000
    	10 - in-and-out bound packets with size 50000, Performed 1000 in 772, 0.772 ms per call - ACCEPTABLE
    ==========================
    Finished Test In 4935 ServerSide: 4930
    ==========================
    1 - echo calls, Performed 1000 in 311, 0.311 ms per call - OK
    2 - inbound packets with size 1000, Performed 1000 in 349, 0.349 ms per call - OK
    3 - inbound packets with size 10000, Performed 1000 in 368, 0.368 ms per call - OK
    4 - inbound packets with size 50000, Performed 1000 in 659, 0.659 ms per call - ACCEPTABLE
    5 - outbound packets with size 1000, Performed 1000 in 348, 0.348 ms per call - OK
    6 - outbound packets with size 10000, Performed 1000 in 402, 0.402 ms per call - OK
    7 - outbound packets with size 50000, Performed 1000 in 948, 0.948 ms per call - ACCEPTABLE
    8 - in-and-out bound packets with size 1000, Performed 1000 in 312, 0.312 ms per call - OK
    9 - in-and-out bound packets with size 10000, Performed 1000 in 451, 0.451 ms per call - OK
    10 - in-and-out bound packets with size 50000, Performed 1000 in 772, 0.772 ms per call - ACCEPTABLE
    
  7. Congrats you just executed your first speed test, with one thread. Now proceed with multithreaded test.
  8. Start multithreaded test:

    Code Block
     ./startMultiThreadedRemoteClient.sh 10 localhost 9249

    and watch the output:

    Code Block
    
    Testing with rmi://org_distributeme_speedtester_TestingService.xxx@localhost:9249
    Testing instance of org.distributeme.speedtester.generated.RemoteTestingServiceStub@44b01d43
    connection established
    -- testing echo calls with 10 threads
    	1 - echo calls, Performed 10000 in 816, 0.0816 ms per call - SUPERB
    -- testing inbound packets with size 1000 with 10 threads
    	2 - inbound packets with size 1000, Performed 10000 in 774, 0.0774 ms per call - SUPERB
    -- testing inbound packets with size 10000 with 10 threads
    	3 - inbound packets with size 10000, Performed 10000 in 1094, 0.1094 ms per call - TOP
    -- testing inbound packets with size 50000 with 10 threads
    	4 - inbound packets with size 50000, Performed 10000 in 4307, 0.4307 ms per call - OK
    -- testing outbound packets with size 1000 with 10 threads
    	5 - outbound packets with size 1000, Performed 10000 in 858, 0.0858 ms per call - SUPERB
    -- testing outbound packets with size 10000 with 10 threads
    	6 - outbound packets with size 10000, Performed 10000 in 2718, 0.2718 ms per call - TOP
    -- testing outbound packets with size 50000 with 10 threads
    	7 - outbound packets with size 50000, Performed 10000 in 14588, 1.4588 ms per call - LOUSY
    -- testing in-and-out bound packets with size 1000 with 10 threads
    	8 - in-and-out bound packets with size 1000, Performed 10000 in 526, 0.0526 ms per call - SUPERB
    -- testing in-and-out bound packets with size 10000 with 10 threads
    	9 - in-and-out bound packets with size 10000, Performed 10000 in 1151, 0.1151 ms per call - TOP
    -- testing in-and-out bound packets with size 50000 with 10 threads
    	10 - in-and-out bound packets with size 50000, Performed 10000 in 4546, 0.4546 ms per call - OK
    ==========================
    Finished Test In 31414 ServerSide: 31413 with 10
    ==========================
    1 - echo calls, Performed 10000 in 816, 0.0816 ms per call - SUPERB
    2 - inbound packets with size 1000, Performed 10000 in 774, 0.0774 ms per call - SUPERB
    3 - inbound packets with size 10000, Performed 10000 in 1094, 0.1094 ms per call - TOP
    4 - inbound packets with size 50000, Performed 10000 in 4307, 0.4307 ms per call - OK
    5 - outbound packets with size 1000, Performed 10000 in 858, 0.0858 ms per call - SUPERB
    6 - outbound packets with size 10000, Performed 10000 in 2718, 0.2718 ms per call - TOP
    7 - outbound packets with size 50000, Performed 10000 in 14588, 1.4588 ms per call - LOUSY
    8 - in-and-out bound packets with size 1000, Performed 10000 in 526, 0.0526 ms per call - SUPERB
    9 - in-and-out bound packets with size 10000, Performed 10000 in 1151, 0.1151 ms per call - TOP
    10 - in-and-out bound packets with size 50000, Performed 10000 in 4546, 0.4546 ms per call - OK
    
  9. Congrats, you're done! Now write down your results and send them to me (wink)

...