@@ -545,6 +545,64 @@ jobs:
545
545
PACKAGE : " perspective-python"
546
546
# PSP_USE_CCACHE: 1
547
547
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
+
548
606
# ,-,---. . .
549
607
# '|___/ ,-. ,-. ,-. |-. ,-,-. ,-. ,-. | ,
550
608
# ,| \ |-' | | | | | | | | ,-| | |<
@@ -588,6 +646,8 @@ jobs:
588
646
589
647
- name : Benchmarks
590
648
run : pnpm run bench
649
+ env :
650
+ PACKAGE : " perspective"
591
651
592
652
- uses : actions/upload-artifact@v4
593
653
with :
@@ -606,6 +666,7 @@ jobs:
606
666
test_python,
607
667
test_js,
608
668
benchmark_js,
669
+ benchmark_python,
609
670
build_emscripten_wheel,
610
671
build_and_test_rust,
611
672
]
@@ -663,6 +724,10 @@ jobs:
663
724
with :
664
725
name : perspective-js-benchmarks
665
726
727
+ - uses : actions/download-artifact@v4
728
+ with :
729
+ name : perspective-python-benchmarks
730
+
666
731
- uses : actions/download-artifact@v4
667
732
with :
668
733
name : perspective-rust
0 commit comments