Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 15 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ on:
description: 'Make flags for CPython build'
required: false
default: '-j'
llvm:
description: 'LLVM version to use'
required: false
default: '19'

jobs:
benchmark:
Expand Down Expand Up @@ -61,8 +65,13 @@ jobs:
# Install CPython dependencies using their script
cd cpython
sudo .github/workflows/posix-deps-apt.sh

# Install Memray dependencies

# Install JIT dependencies
if [ "${{ inputs.binary_id }}" = "jit" ]; then
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ inputs.llvm }}
fi

# Install Memray dependencies
sudo apt-get install -y \
python3-dev \
libdebuginfod-dev \
Expand All @@ -73,6 +82,10 @@ jobs:
env:
MEMORY_TRACKER_TOKEN: ${{ secrets.MEMORY_TRACKER_TOKEN }}
run: |
if [ "${{ inputs.binary_id }}" = "jit" ]; then
export PATH="$(llvm-config-${{ inputs.llvm }} --bindir):$PATH"
fi

# Build command with conditional flags
CMD="memory-tracker benchmark '${{ github.event.inputs.commit_range }}'"
CMD="$CMD --repo-path ./cpython"
Expand Down
9 changes: 9 additions & 0 deletions backend/scripts/populate_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ def get_standard_binaries():
"icon": "search",
"display_order": 7,
},
{
"id": "jit",
"name": "JIT Build",
"flags": ["--enable-experimental-jit"],
"description": "Just-In-Time compilation enabled.",
"color": "#fc03df",
"icon": "zap",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this icon supposed to be unique? Looks like both PGO and nogil are using the same zap icon.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, is just the icon that is used when displayed here: https://memory.python.org/binaries

it can be changed later in the admin panel

"display_order": 8,
},
]


Expand Down