Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbette committed Jul 20, 2023
1 parent e68ff8e commit 8b812e1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
4 changes: 2 additions & 2 deletions npf/grapher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,8 +1577,8 @@ def generate_plot_for_graph(self, i, i_subplot, figure, n_cols, n_lines, vars_va
idx = int(graph_bg[result_type])

if idx is not None:
bgcolor = lighter(graphcolor[idx],0.12,255)
bgcolor2 = lighter(graphcolor[idx],0.03,255)
bgcolor = lighter(graphcolor[idx*2],0.12,255)
bgcolor2 = lighter(graphcolor[idx*2],0.03,255)
yl = axis.get_ylim()
xt = axis.get_xticks()
if len(xt) > 1:
Expand Down
13 changes: 8 additions & 5 deletions tests/tcp/01-iperf.npf
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
%info
IPerf 3 Throughput Experiment
IPerf 2 Throughput Experiment

%config
n_runs=5
var_names+={PARALLEL:Number of parallel connexions,ZEROCOPY:Zero-Copy}
timeout=25
default_repo=iperf
default_repo=iperf2


%import graph-beautiful

%variables
PARALLEL=[1-8]
Expand All @@ -15,8 +18,8 @@ TIME=2
fastregression:PARALLEL={1,8}

%script@server
iperf3 -s
iperf -s

%script@client delay=1
result=$(iperf3 -f k -t $TIME -P $PARALLEL $ZEROCOPY -c ${server:0:ip} | tail -n 3 | grep -ioE "[0-9.]+ [kmg]bits")
%script@client delay=2
result=$(iperf -f k -t $TIME -P $PARALLEL $ZEROCOPY -c ${server:0:ip} | tail -n 3 | grep -ioE "[0-9.]+ [kmg]bits")
echo "RESULT-THROUGHPUT $result"
26 changes: 26 additions & 0 deletions tests/tcp/02-iperf3.npf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
%info
IPerf 3 Throughput Experiment

%config
n_runs=5
var_names+={PARALLEL:Number of parallel connexions,ZEROCOPY:Zero-Copy}
timeout=25
default_repo=iperf

graph_background=1

%import graph-beautiful

%variables
PARALLEL=[1-8]
ZEROCOPY={:without,-Z:with}
TIME=2

fastregression:PARALLEL={1,8}

%script@server
iperf3 -s

%script@client delay=2
result=$(iperf3 -f k -t $TIME -P $PARALLEL $ZEROCOPY -c ${server:0:ip} | tail -n 3 | grep -ioE "[0-9.]+ [kmg]bits")
echo "RESULT-THROUGHPUT $result"

0 comments on commit 8b812e1

Please sign in to comment.