summaryrefslogtreecommitdiff
path: root/TS/baselines/cpu/run-perf.sh
blob: 453b64b5050a4e81b8e3f9b6ce9951f9eb961228 (plain)
1
2
3
4
5
6
7
8
#!/bin/zsh

make -B NUMA=1

for i in $(seq 1 20); do
	OMP_NUM_THREADS=1 perf stat record -o t1.${i}.perf -e ${(j:,:):-$(grep -v '^#' ../../../perf-events.txt | cut -d ' ' -f 1)} ./streamp_openmp inputs/randomlist10M.txt 256 4 4
	OMP_NUM_THREADS=4 perf stat record -o t4.${i}.perf -e ${(j:,:):-$(grep -v '^#' ../../../perf-events.txt | cut -d ' ' -f 1)} ./streamp_openmp inputs/randomlist10M.txt 256 4 4
done