Skip to content

Commit

Permalink
bench: Added packetblaster-synth-64.
Browse files Browse the repository at this point in the history
  • Loading branch information
aequabit committed Jan 25, 2016
1 parent 2c0da6e commit c0a1fe3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench/packetblaster-64
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

[ ! -z "$SNABB_PCI_INTEL0" ] || exit 1

out=$(./snabb packetblaster replay --duration 1 \
program/snabbnfv/test_fixtures/pcap/64.pcap \
"$SNABB_PCI_INTEL0")
Expand Down
10 changes: 10 additions & 0 deletions src/bench/packetblaster-synth-64
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

[ ! -z "$SNABB_PCI_INTEL0" ] || exit 1

out=$(./snabb packetblaster synth --src 11:11:11:11:11:11 --dst 22:22:22:22:22:22 --sizes 64,128,256 --duration 1 \
"$SNABB_PCI_INTEL0")
# Extract floating point Mpps number from output.
pps=$(echo "$out" | grep TXDGPC | cut -f 3 | sed s/,//g)
echo "scale=2; $pps / 1000000" | bc

0 comments on commit c0a1fe3

Please sign in to comment.