Skip to content

Commit bca1104

Browse files
committed
Python benchmarks
Signed-off-by: Andrew Stein <[email protected]>
1 parent 0469dda commit bca1104

File tree

12 files changed

+685
-511
lines changed

12 files changed

+685
-511
lines changed

.github/workflows/build.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,64 @@ jobs:
545545
PACKAGE: "perspective-python"
546546
# PSP_USE_CCACHE: 1
547547

548+
# ,-,---. . .
549+
# '|___/ ,-. ,-. ,-. |-. ,-,-. ,-. ,-. | ,
550+
# ,| \ |-' | | | | | | | | ,-| | |<
551+
# `-^---' `-' ' ' `-' ' ' ' ' ' `-^ ' ' `
552+
#
553+
# .-,--. . .
554+
# '|__/ . . |- |-. ,-. ,-.
555+
# ,| | | | | | | | | |
556+
# `' `-| `' ' ' `-' ' '
557+
# /|
558+
# `-'
559+
benchmark_python:
560+
needs: [build_python, build_js]
561+
if: startsWith(github.ref, 'refs/tags/v')
562+
runs-on: ${{ matrix.os }}
563+
strategy:
564+
fail-fast: false
565+
matrix:
566+
os: [ubuntu-22.04]
567+
python-version: [3.9]
568+
node-version: [20.x]
569+
arch: [x86_64]
570+
steps:
571+
- name: Checkout
572+
uses: actions/checkout@v4
573+
574+
- name: Config
575+
id: config-step
576+
uses: ./.github/actions/config
577+
578+
- name: Initialize Build
579+
uses: ./.github/actions/install-deps
580+
with:
581+
rust: "false"
582+
cpp: "false"
583+
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}
584+
585+
- uses: actions/download-artifact@v4
586+
with:
587+
name: perspective-js-dist
588+
path: .
589+
590+
- uses: actions/download-artifact@v4
591+
with:
592+
name: perspective-python-dist-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python-version }}
593+
594+
- uses: ./.github/actions/install-wheel
595+
596+
- name: Benchmarks
597+
run: pnpm run bench
598+
env:
599+
PACKAGE: "perspective-python"
600+
601+
- uses: actions/upload-artifact@v4
602+
with:
603+
name: perspective-python-benchmarks
604+
path: tools/perspective-bench/dist/benchmark-python.arrow
605+
548606
# ,-,---. . .
549607
# '|___/ ,-. ,-. ,-. |-. ,-,-. ,-. ,-. | ,
550608
# ,| \ |-' | | | | | | | | ,-| | |<
@@ -588,6 +646,8 @@ jobs:
588646

589647
- name: Benchmarks
590648
run: pnpm run bench
649+
env:
650+
PACKAGE: "perspective"
591651

592652
- uses: actions/upload-artifact@v4
593653
with:
@@ -606,6 +666,7 @@ jobs:
606666
test_python,
607667
test_js,
608668
benchmark_js,
669+
benchmark_python,
609670
build_emscripten_wheel,
610671
build_and_test_rust,
611672
]
@@ -663,6 +724,10 @@ jobs:
663724
with:
664725
name: perspective-js-benchmarks
665726

727+
- uses: actions/download-artifact@v4
728+
with:
729+
name: perspective-python-benchmarks
730+
666731
- uses: actions/download-artifact@v4
667732
with:
668733
name: perspective-rust

pnpm-lock.yaml

+30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)