@@ -252,34 +252,59 @@ poets(){
252
252
253
253
254
254
aliases (){
255
- cd aliases/
256
- if [ -e ./seq.res ]; then
257
- echo " skipping $( basename $( pwd) ) /seq.res"
255
+ seq_times_file=" seq.res"
256
+ outputs_suffix=" seq.out"
257
+ outputs_dir=" outputs"
258
+ if [ -e " aliases/${seq_times_file} " ]; then
259
+ echo " skipping aliases/${seq_times_file} "
258
260
return 0
259
261
fi
260
262
261
- cd meta/
263
+ cd aliases/
264
+
265
+ cd input/
262
266
./setup.sh
267
+ ./install-deps.sh
263
268
cd ..
264
- echo ' ' > seq.res
265
- echo executing aliases $( date) | tee -a ./seq.res
266
- cd select
267
- export WAV=$PASH_TOP /evaluation/benchmarks/aliases/meta/wav
268
- export JPG=$PASH_TOP /evaluation/benchmarks/aliases/meta/jpg
269
- export RTF=$PASH_TOP /evaluation/benchmarks/aliases/meta/rtf
270
- export GIT=$PASH_TOP /evaluation/benchmarks/aliases/meta/linux
271
- export IN=$PASH_TOP /evaluation/benchmarks/aliases/meta/
272
- export OUT=$PASH_TOP /evaluation/benchmarks/aliases/meta/out
273
- echo tomp3: $( { time ./1.tomp3.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
274
- echo unrtf: $( { time ./2.unrtf.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
275
- echo convertjpg: $( { time ./3.resiz.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
276
- # echo gitkernel: $({ time ./4.gitkernel.sh > /dev/null; } 2>&1) | tee -a ../seq.res FIXME need complex grep command
277
- echo apachelog: $( { time ./5.apachelog.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
278
- echo msg: $( { time ./6.msg.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
279
- echo nginx: $( { time ./7.nginx.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
280
- echo varlog: $( { time ./8.varlog.sh > /dev/null; } 2>&1 ) | tee -a ../seq.res
281
- }
282
269
270
+ mkdir -p " $outputs_dir "
271
+
272
+ names_scripts=(
273
+ # "tomp3;1.tomp3"
274
+ # "unrtf;2.unrtf"
275
+ # "convertjpg;3.resiz"
276
+ # "gitkernel;4.gitkernel" # needs complex grep command
277
+ " apachelog;5.apachelog"
278
+ " msg;6.msg"
279
+ " nginx;7.nginx"
280
+ " varlog;8.varlog"
281
+ )
282
+
283
+ touch " $seq_times_file "
284
+ echo executing aliases $( date) | tee -a " $seq_times_file "
285
+ echo ' ' >> " $seq_times_file "
286
+
287
+ export WAV=$PASH_TOP /evaluation/benchmarks/aliases/input/wav
288
+ export JPG=$PASH_TOP /evaluation/benchmarks/aliases/input/jpg
289
+ export RTF=$PASH_TOP /evaluation/benchmarks/aliases/input/rtf
290
+ export GIT=$PASH_TOP /evaluation/benchmarks/aliases/input/linux
291
+ export IN=$PASH_TOP /evaluation/benchmarks/aliases/input/
292
+ export OUT=$PASH_TOP /evaluation/benchmarks/aliases/input/out
293
+ for name_script in ${names_scripts[@]}
294
+ do
295
+ IFS=" ;" read -r -a name_script_parsed <<< " ${name_script}"
296
+ name=" ${name_script_parsed[0]} "
297
+ script=" ${name_script_parsed[1]} "
298
+ printf -v pad %30s
299
+ padded_script=" ${name} .sh:${pad} "
300
+ padded_script=${padded_script: 0: 30}
301
+
302
+ outputs_file=" ${outputs_dir} /${script} .${outputs_suffix} "
303
+
304
+ echo " ${padded_script} " $( { time ./${script} .sh > " $outputs_file " ; } 2>&1 ) | tee -a " $seq_times_file "
305
+ done
306
+ cd ..
307
+ }
283
308
284
309
bio () {
285
310
cd bio
@@ -369,8 +394,8 @@ posh() {
369
394
370
395
371
396
372
- posh
397
+ # posh
373
398
# poets
374
- # aliases
375
- dgsh
376
-
399
+ aliases
400
+ # dgsh
401
+ #
0 commit comments