Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/benchmarks/scripts/run-benchmarks-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ fi

echo $(pwd)

# Share this 'setUp' implementation with
# https://github.com/elastic/apm-agent-java/blob/main/scripts/jenkins/run-benchmarks.sh
function setUp() {
echo "Setting CPU frequency to base frequency"

Expand All @@ -39,6 +41,10 @@ function setUp() {
then
CORE_INDEX=9
BASE_FREQ="2.90GHz"
elif [ "${CPU_MODEL}" == "12th Gen Intel(R) Core(TM) i5-12500 " ]
then
CORE_INDEX=11
BASE_FREQ="3.0GHz"
else
>&2 echo "Cannot determine base frequency for CPU model [${CPU_MODEL}]. Please adjust the build script."
exit 1
Expand Down