Skip to content

Commit 353fc6a

Browse files
authored
Use again the cpuset after compare function fix (#163)
1 parent d7c619a commit 353fc6a

File tree

1 file changed

+6
-1
lines changed
  • benchmarks/community-benchmark

1 file changed

+6
-1
lines changed

benchmarks/community-benchmark/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ echo "The following are optional across both use cases"
3838
echo "RUNS = defaults to empty"
3939
echo "FILTER = defaults to empty"
4040
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)"
4142
}
4243

4344
if [ -z $PULL_ID ]; then
@@ -53,6 +54,7 @@ fi
5354
mandatory CATEGORY
5455
optional RUNS
5556
optional FILTER
57+
optional CPUSET "0-11"
5658
getMACHINE_THREADS=`cat /proc/cpuinfo |grep processor|tail -n1|awk {'print $3'}`
5759
let getMACHINE_THREADS=getMACHINE_THREADS+1 #getting threads this way is 0 based. Add one
5860
optional MACHINE_THREADS $getMACHINE_THREADS
@@ -96,13 +98,16 @@ fi
9698
if [ -n "$RUNS" ]; then
9799
RUNS="--runs ${RUNS}"
98100
fi
101+
if [ -n "$CPUSET" ]; then
102+
CPUSET="--set CPUSET=${CPUSET}"
103+
fi
99104
# run benchmark
100105
fileName=output`date +%d%m%y-%H%M%S`.csv
101106
echo "Output will be saved to $fileName"
102107
pwd
103108

104109
# 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
106111

107112
cat $fileName | Rscript benchmark/compare.R
108113
mv $fileName $startDir

0 commit comments

Comments
 (0)