diff --git a/.github/workflows/macosx_windows_ci.yaml b/.github/workflows/macosx_windows_ci.yaml index 41ed4d01e..bd6c4e495 100644 --- a/.github/workflows/macosx_windows_ci.yaml +++ b/.github/workflows/macosx_windows_ci.yaml @@ -131,7 +131,7 @@ jobs: - name: Run benchmark run: | - pytest --benchmark-only --benchmark-json output.json + pytest --benchmark-only --benchmark-name=short --benchmark-json output.json # Download previous benchmark result from cache (if exists) - name: Download previous benchmark data diff --git a/tests/utils/test_bls.py b/tests/utils/test_bls.py index a7d8d339f..1a9a2ade2 100644 --- a/tests/utils/test_bls.py +++ b/tests/utils/test_bls.py @@ -48,12 +48,12 @@ def test_antnums_to_baseline_miriad_convention(): @pytest.mark.skipif(not hasbench, reason="benchmark utility not installed") @pytest.mark.parametrize( - "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"nbls={x:}" + "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"len={x:}" ) @pytest.mark.parametrize( - "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"start={x:}" + "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"min={x:}" ) -def test_bls_to_ants_bench(benchmark, bl_start, nbls): +def test_bls_to_ant(benchmark, bl_start, nbls): bls = np.arange(bl_start, bl_start + nbls) if nbls > 65535: bls += 65536 @@ -75,12 +75,12 @@ def test_bls_to_ants_bench(benchmark, bl_start, nbls): @pytest.mark.skipif(not hasbench, reason="benchmark utility not installed") @pytest.mark.parametrize( - "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"nbls={x:}" + "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"len={x:}" ) @pytest.mark.parametrize( - "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"start={x:}" + "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"min={x:}" ) -def test_ants_to_bls_bench(benchmark, bl_start, nbls): +def test_ants_to_bls(benchmark, bl_start, nbls): bls = np.arange(bl_start, bl_start + nbls) nants_telescope = 2048 if bl_start < 2**16 + 2**22 else 2**16 + 2**22 if nbls > 65535: