summaryrefslogtreecommitdiff
path: root/compbench.sh
blob: 2250f1f27b68c24431b61851bd0b3a2bc06ca875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

name=$1
./compbench $2 &> /dev/null &
comp_pid=$!

(./cpu.sh > ${name}_cpu.log) &
cpu_pid=$!
(./mem.sh > ${name}_mem.log) &
mem_pid=$!
(./bat.sh > ${name}_bat.log) &
bat_pid=$!

wait $comp_pid
kill $cpu_pid
kill $mem_pid
kill $bat_pid