NAME = "Netperf2 (Parallel)"
AUTHOR = "Martin Bligh <mbligh@google.com>"
TIME = "MEDIUM"
TEST_CATEGORY = "BENCHMARK"
TEST_CLASS = "HARDWARE"
TEST_TYPE = "CLIENT"
DOC = """
TCP/UDP/sockets/etc performance benchmark.
See http://www.netperf.org/netperf/NetperfPage.html.
"""

def client():
    job.run_test('netperf2',
                 server_ip='127.0.0.1',
                 client_ip='127.0.0.1',
                 role='client',
                 tag='client')

def server():
    job.run_test('netperf2',
                 server_ip='127.0.0.1',
                 client_ip='127.0.0.1',
                 role='server',
                 tag='server')

job.parallel([server], [client])