Last active
August 16, 2018 02:24
-
-
Save portante/518472b8e55b17a61e466cc57c41cd8b to your computer and use it in GitHub Desktop.
The record_iteration functions from pbench-uperf and pbench-user-benchmark for comparison purposes while debugging how iteration recording is handled in pbench.
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
# August 15th, 2018 | |
# from pbench-uperf | |
function record_iteration { | |
local count=$1 | |
local protocol=$2 | |
local test_type=$3 | |
local message_size=$4 | |
local instance=$5 | |
local iteration=$6 | |
echo ${iteration} >> ${benchmark_iterations} | |
echo $count | pbench-add-metalog-option ${mdlog} iterations/${iteration} iteration_number | |
echo $protocol | pbench-add-metalog-option ${mdlog} iterations/${iteration} protocol | |
echo $test_type | pbench-add-metalog-option ${mdlog} iterations/${iteration} test_type | |
echo $message_size | pbench-add-metalog-option ${mdlog} iterations/${iteration} message_size_bytes | |
echo $instance | pbench-add-metalog-option ${mdlog} iterations/${iteration} instances | |
echo $iteration | pbench-add-metalog-option ${mdlog} iterations/${iteration} iteration_name | |
} | |
# from pbench-user-benchmark | |
function record_iteration { | |
local iteration=$1 | |
local iteration_name=$2 | |
local benchmark_bin=$3 | |
echo ${iteration} >> ${benchmark_iterations} | |
echo $iteration_name | pbench-add-metalog-option ${mdlog} iterations/${iteration} iteration_name | |
echo $benchmark_bin | pbench-add-metalog-option ${mdlog} iterations/${iteration} user_script | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment