forked from rigtorp/ipc-bench
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup of the various tests and more structured output for graphing
- Loading branch information
Showing
10 changed files
with
191 additions
and
422 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
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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
SIZES="1 2 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536" | ||
NUMS="50000" | ||
TEST="pipe_lat unix_lat" | ||
#SIZES="1 2 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536" | ||
#SIZES="1 8 32 64 256 1024 4096 8192 16384 32768 65536" | ||
SIZES="8 64 1024 8192 16384" | ||
NUMS="40000" | ||
TEST="pipe_lat unix_lat tcp_lat tcp_thr pipe_thr unix_thr" | ||
|
||
IF=eth0 | ||
EXTERNAL_IP=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | ||
|
||
OUT=results.csv | ||
rm -f ${OUT} | ||
|
||
for test in ${TEST}; do | ||
for size in ${SIZES}; do | ||
for num in ${NUMS}; do | ||
echo ${test}: ${size} x ${num} | ||
./${test} ${size} ${num} | ||
./${test} ${size} ${num} >> ${OUT} | ||
done | ||
done | ||
done |
Oops, something went wrong.