org.web3d.vrtp.net
Class SocketBenchmark

java.lang.Object
  |
  +--org.web3d.vrtp.net.SocketBenchmark

class SocketBenchmark
extends java.lang.Object

SocketBenchmark

This is a small benchmarking program, intended to see what the performance of a bare socket receiving datagram packets and decoding them is. The output from this is used to compare performance to the dial-a-behavior approach.

Author:
Don McGregor mcgredo@nps.navy.mil

Field Summary
static int DEFAULT_PORT
           
static java.lang.String MCAST_ADDRESS
           
 
Constructor Summary
SocketBenchmark(java.lang.String pAddress, int pPort)
          Constructor
 
Method Summary
static void main(java.lang.String[] args)
          Entry point; create new object and run.
 void run()
          Main loop.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MCAST_ADDRESS

public static final java.lang.String MCAST_ADDRESS

DEFAULT_PORT

public static final int DEFAULT_PORT
Constructor Detail

SocketBenchmark

public SocketBenchmark(java.lang.String pAddress,
                       int pPort)
Constructor
Parameters:
pPort - port to listen on
pAddress - mcast address to listen on
Method Detail

run

public void run()
Main loop. Read, decode, and time.

main

public static void main(java.lang.String[] args)
Entry point; create new object and run.