-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace scripts/cperf with `make benchmarks'.
- Loading branch information
Showing
15 changed files
with
42 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
out=$(./snabb snabbmark basic1 100e6) | ||
# Extract floating point Mpps number from output. | ||
echo "$out" | tail -n 1 | cut -d " " -f 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
export PCIADDR=$SNABB_PCI_INTEL0 | ||
[ ! -z "$PCIADDR" ] || export PCIADDR=$SNABB_PCI0 | ||
[ ! -z "$PCIADDR" ] || exit 1 | ||
|
||
out=$(./snabb packetblaster replay --duration 1 \ | ||
program/packetblaster/64.pcap \ | ||
"$PCIADDR") | ||
# Extract floating point Mpps number from output. | ||
pps=$(echo "$out" | grep TXDGPC | cut -f 3 | sed s/,//g) | ||
echo "scale=2; $pps / 1000000" | bc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
out=$(program/snabbnfv/selftest.sh bench) | ||
# Extract floating point Gbits number from output. | ||
echo "$out" | grep IPERF-1500 | cut -d " " -f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
out=$(program/snabbnfv/selftest.sh bench jumbo) | ||
# Extract floating point Gbits number from output. | ||
echo "$out" | grep IPERF-JUMBO | cut -d " " -f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
out=$(program/snabbnfv/packetblaster_bench.sh) | ||
# Extract floating point Mpps number from output. | ||
echo "$out" | tail -n 1 | cut -f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
for bench in $(ls bench/); do | ||
echo $bench $(bench/$bench || echo "0") | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.