File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ echo "The following are optional across both use cases"
38
38
echo " RUNS = defaults to empty"
39
39
echo " FILTER = defaults to empty"
40
40
echo " MACHINE_THREADS - used for building node. Defaults to all threads on machine"
41
+ echo " CPUSET - used for pinning to specific CPU cores. Default to 0-11 (performance cores)"
41
42
}
42
43
43
44
if [ -z $PULL_ID ]; then
53
54
mandatory CATEGORY
54
55
optional RUNS
55
56
optional FILTER
57
+ optional CPUSET " 0-11"
56
58
getMACHINE_THREADS=` cat /proc/cpuinfo | grep processor| tail -n1| awk {' print $3' }`
57
59
let getMACHINE_THREADS=getMACHINE_THREADS+1 # getting threads this way is 0 based. Add one
58
60
optional MACHINE_THREADS $getMACHINE_THREADS
96
98
if [ -n " $RUNS " ]; then
97
99
RUNS=" --runs ${RUNS} "
98
100
fi
101
+ if [ -n " $CPUSET " ]; then
102
+ CPUSET=" --set CPUSET=${CPUSET} "
103
+ fi
99
104
# run benchmark
100
105
fileName=output` date +%d%m%y-%H%M%S` .csv
101
106
echo " Output will be saved to $fileName "
102
107
pwd
103
108
104
109
# Run on performance cores
105
- taskset -c 0-11 ./node-master benchmark/compare.js --old ./node-master --new ./node-pr $FILTER $RUNS -- $CATEGORY | tee $fileName
110
+ ./node-master benchmark/compare.js $CPUSET --old ./node-master --new ./node-pr $FILTER $RUNS -- $CATEGORY | tee $fileName
106
111
107
112
cat $fileName | Rscript benchmark/compare.R
108
113
mv $fileName $startDir
You can’t perform that action at this time.
0 commit comments