• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2017-2018 Oracle and/or its affiliates. All Rights Reserved.
4# Author: Alexey Kodanev <alexey.kodanev@oracle.com>
5
6TST_TESTFUNC="test"
7TST_NEEDS_TMPDIR=1
8TST_NEEDS_ROOT=1
9TST_TEST_DATA=",-A 65000"
10TST_TEST_DATA_IFS=","
11
12
13test()
14{
15	local opts="$2"
16
17	tst_res TINFO "compare TCP/SCTP performance"
18
19	tst_netload -H $(tst_ipaddr rhost) -T tcp -R 3 $opts
20	local res0="$(cat tst_netload.res)"
21
22	tst_netload -S $(tst_ipaddr) -H $(tst_ipaddr rhost) -T sctp -R 3 $opts
23	local res1="$(cat tst_netload.res)"
24
25	tst_netload_compare $res0 $res1 -200 200
26}
27
28. tst_net.sh
29tst_run
30