blob: 97112d18a501451eae86e51a7e8ea523d9cff8a4 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Package netperf is used for running performance tests using linux
// netperf/netserver suite.
// Example usage:
// netperfSession := netperf.NewSession(
// clientHost.conn,
// clientHost.IP, // DUT IP
// serverHost.conn,
// serverHost.IP) // Router IP
// defer func(ctx context.Context) {
// netperfSession.Close(ctx)
// }(ctx)
// ret, err = netperfSession.Run(ctx, netperf.Config{
// TestTime: 10*time.Second,
// TestType: netperf.TestTypeTCPStream})
package netperf