world leader in high performance signal processing
Trace: » netperf
Table of Contents

NetPerf

Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency. The environments currently measurable by netperf include:

  • TCP and UDP via BSD Sockets
  • DLPI
  • UNIX Domain Sockets
  • Fore ATM API
  • HP HiPPI Link Level Access

Build NetPerf

Netperf includes two components: netperf and netserver.

Select “Network Applications” → “netperf” and “Network Applications” → “netserver”.

Usage

Please refer to the netperf manual: http://www.netperf.org/netperf/training/Netperf.html.

You can start netserver on one board and start netperf on another board. Or you can start netserver on your host PC while running netperf on blackfin board.

Here is sample output from a BF537 STAMP board testing UDP stream(Note the number may be different on you side):

root:/> netperf -t UDP_STREAM -H 10.99.22.186 -- -m 1024
UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.99.22.186 (10.99.22.186) port 0 AT
Socket  Message  Elapsed      Messages                
Size    Size     Time         Okay Errors   Throughput
bytes   bytes    secs            #      #   10^6bits/sec

104448    1024   10.00      106776      0      87.46
129024           10.00      106727             87.42    

If you experience low throughput rates, make sure the netperf client and server are the same version exactly

Reference