From 916689f1c28a5fd87f116efff150697f2cb75a7a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 15 Sep 2015 23:05:17 -0400 Subject: [PATCH] Performance: Stores a copy of the test data - This speeds the second run of 'make perf'. --- performance/run_perf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/performance/run_perf b/performance/run_perf index d8e9bba51..c0c5d4bdb 100755 --- a/performance/run_perf +++ b/performance/run_perf @@ -1,13 +1,20 @@ #! /bin/bash echo 'Performance: setup' -echo ' - This step will take several minutes' rm -f ./pending.data ./completed.data ./undo.data ./backlog.data perf.rc -./load +if [[ -e data/pending.data && -e data/completed.data ]] +then + echo ' - Using existing data' + cp data/* . +else + echo ' - This step will take several minutes' + ./load + mkdir -p data + cp *.data perf.rc data +fi -#TASK=/usr/local/bin/tw212 -#TASK=/usr/local/bin/tw220 -#TASK=/usr/local/bin/tw230 +#TASK=/usr/local/bin/tw244 +#TASK=/usr/local/bin/tw250b1 TASK=../src/task # Run benchmarks.