Skip to content

Commit

Permalink
Python benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <steinlink@gmail.com>
  • Loading branch information
texodus committed Sep 22, 2024
1 parent 0469dda commit bca1104
Show file tree
Hide file tree
Showing 12 changed files with 685 additions and 511 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,64 @@ jobs:
PACKAGE: "perspective-python"
# PSP_USE_CCACHE: 1

# ,-,---. . .
# '|___/ ,-. ,-. ,-. |-. ,-,-. ,-. ,-. | ,
# ,| \ |-' | | | | | | | | ,-| | |<
# `-^---' `-' ' ' `-' ' ' ' ' ' `-^ ' ' `
#
# .-,--. . .
# '|__/ . . |- |-. ,-. ,-.
# ,| | | | | | | | | |
# `' `-| `' ' ' `-' ' '
# /|
# `-'
benchmark_python:
needs: [build_python, build_js]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
python-version: [3.9]
node-version: [20.x]
arch: [x86_64]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Config
id: config-step
uses: ./.github/actions/config

- name: Initialize Build
uses: ./.github/actions/install-deps
with:
rust: "false"
cpp: "false"
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}

- uses: actions/download-artifact@v4
with:
name: perspective-js-dist
path: .

- uses: actions/download-artifact@v4
with:
name: perspective-python-dist-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python-version }}

- uses: ./.github/actions/install-wheel

- name: Benchmarks
run: pnpm run bench
env:
PACKAGE: "perspective-python"

- uses: actions/upload-artifact@v4
with:
name: perspective-python-benchmarks
path: tools/perspective-bench/dist/benchmark-python.arrow

# ,-,---. . .
# '|___/ ,-. ,-. ,-. |-. ,-,-. ,-. ,-. | ,
# ,| \ |-' | | | | | | | | ,-| | |<
Expand Down Expand Up @@ -588,6 +646,8 @@ jobs:

- name: Benchmarks
run: pnpm run bench
env:
PACKAGE: "perspective"

- uses: actions/upload-artifact@v4
with:
Expand All @@ -606,6 +666,7 @@ jobs:
test_python,
test_js,
benchmark_js,
benchmark_python,
build_emscripten_wheel,
build_and_test_rust,
]
Expand Down Expand Up @@ -663,6 +724,10 @@ jobs:
with:
name: perspective-js-benchmarks

- uses: actions/download-artifact@v4
with:
name: perspective-python-benchmarks

- uses: actions/download-artifact@v4
with:
name: perspective-rust
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bca1104

Please sign in to comment.