Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment benchmark from pipeline #359

Merged
merged 1 commit into from
Oct 31, 2024
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
74 changes: 37 additions & 37 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,40 +112,40 @@ jobs:
- name: Perform Integration Testing
run: make integration-tests

benchmark:
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ~3.10
cache: "pip"

- name: Install dependencies
run: |-
pip3 install poetry hyperon
poetry lock --no-update
poetry install

- name: Build hyperon-das
run: poetry build

- name: Install hyperon-das
run: pip install $(find ./dist -name *.whl)

- name: Perform Benchmark
run: |
output=$(make performance-tests 2>&1)
real_time=$(echo "$output" | grep "^real" | awk 'NR==2 {print $2}')

if echo "$output" | grep -q 'SUCCESS!'; then
echo "$real_time"
exit 0
fi

echo "FAILURE!"
exit 1
# benchmark:
# runs-on: ubuntu-22.04
# if: ${{ github.ref == 'refs/heads/master' }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: ~3.10
# cache: "pip"

# - name: Install dependencies
# run: |-
# pip3 install poetry hyperon
# poetry lock --no-update
# poetry install

# - name: Build hyperon-das
# run: poetry build

# - name: Install hyperon-das
# run: pip install $(find ./dist -name *.whl)

# - name: Perform Benchmark
# run: |
# output=$(make performance-tests 2>&1)
# real_time=$(echo "$output" | grep "^real" | awk 'NR==2 {print $2}')

# if echo "$output" | grep -q 'SUCCESS!'; then
# echo "$real_time"
# exit 0
# fi

# echo "FAILURE!"
# exit 1