Skip to content

Commit

Permalink
mwa corr fits: bench van vleck & select on read
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolopanis committed Aug 22, 2024
1 parent d6b27a2 commit 33c24bf
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions tests/uvdata/test_mwa_corr_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

"""Tests for MWACorrFITS object."""

import importlib
import itertools
import os
import warnings

import h5py
import numpy as np
Expand All @@ -16,6 +18,8 @@
from pyuvdata.testing import check_warnings
from pyuvdata.uvdata.mwa_corr_fits import input_output_mapping

hasbench = importlib.util.find_spec("pytest_benchmark") is not None

# set up MWA correlator file list
testdir = os.path.join(DATA_PATH, "mwa_corr_fits_testfiles/")

Expand Down Expand Up @@ -1181,3 +1185,55 @@ def test_default_corrections(tmp_path):
assert "Divided out pfb coarse channel bandpass" in uv2.history
assert "Applied cable length correction" in uv1.history
assert "Applied cable length correction" in uv2.history


@pytest.mark.skipif(not hasbench, reason="benchmark utility not installed")
def test_corr_fits_select_on_read(benchmark):
mwa_uv = UVData()
mwa_uv2 = UVData()
mwa_uv.read(filelist[0:2], correct_cable_len=True)
unique_times = np.unique(mwa_uv.time_array)
select_times = unique_times[
np.where(
(unique_times >= np.min(mwa_uv.time_array))
& (unique_times <= np.mean(mwa_uv.time_array))
)
]
mwa_uv.select(times=select_times)
# we check warnings earlier here we care about performance.
with warnings.catch_warnings():
warnings.simplefilter("ignore")
benchmark(
mwa_uv2.read,
filelist[0:2],
correct_cable_len=True,
time_range=[np.min(mwa_uv.time_array), np.mean(mwa_uv.time_array)],
)
assert mwa_uv == mwa_uv2


@pytest.mark.skipif(not hasbench, reason="benchmark utility not installed")
@pytest.mark.parametrize("cheby", [True, False], ids=lambda x: f"cheby={x:}")
def test_van_vleck(benchmark, cheby):
uv1 = UVData()
benchmark(
uv1.read,
filelist[8:10],
flag_init=False,
correct_van_vleck=True,
cheby_approx=cheby,
remove_coarse_band=False,
remove_dig_gains=False,
remove_flagged_ants=cheby,
correct_cable_len=False,
)
# read in file corrected using integrate.quad with 1e-10 precision
uv2 = UVData()
uv2.read(filelist[10])

if cheby:
# select only good ants
good_ants = np.delete(np.unique(uv2.ant_1_array), 76)
uv2.select(antenna_nums=good_ants)

assert np.allclose(uv1.data_array, uv2.data_array)

5 comments on commit 33c24bf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 33c24bf Previous: 40c0d8d Ratio
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1] 85296.371492986 iter/sec (stddev: 0.0000010728415436300967) 80757.02683720138 iter/sec (stddev: 0.0000011295196171994647) 0.95
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10] 83456.4913512112 iter/sec (stddev: 0.0000011031685945603634) 79326.32510400646 iter/sec (stddev: 0.0000011769738487487243) 0.95
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100] 80243.79538503254 iter/sec (stddev: 0.0000012103477431428235) 75658.28637290686 iter/sec (stddev: 0.000001773786909884748) 0.94
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000] 63012.60252043978 iter/sec (stddev: 0.0000015158130384753327) 61069.557584305294 iter/sec (stddev: 0.0000016406921469283156) 0.97
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10000] 24509.18441125072 iter/sec (stddev: 0.0000025241571069986454) 24119.72115562433 iter/sec (stddev: 0.00000258314811835852) 0.98
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100000] 3744.585309484766 iter/sec (stddev: 0.00000973692735730887) 3756.8065295985957 iter/sec (stddev: 0.000007885333580861608) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000000] 127.75247774462635 iter/sec (stddev: 0.00021985671261059577) 128.68233154153023 iter/sec (stddev: 0.00027745273970091876) 1.01
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1] 85535.92083470625 iter/sec (stddev: 0.0000011434905750740016) 80757.43722907243 iter/sec (stddev: 0.0000012067808279865577) 0.94
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10] 83701.53436224918 iter/sec (stddev: 0.000001193075789001211) 78846.98134134157 iter/sec (stddev: 0.0000013214946020771167) 0.94
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100] 79504.3309680083 iter/sec (stddev: 0.000001225970677944163) 76388.37704991378 iter/sec (stddev: 0.0000012197406782745356) 0.96
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000] 62496.94318582049 iter/sec (stddev: 0.0000013385686661677363) 60701.59114653326 iter/sec (stddev: 0.000001442487753608871) 0.97
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10000] 24411.029631905833 iter/sec (stddev: 0.000002929368008802206) 24149.313708174275 iter/sec (stddev: 0.0000029142012222303434) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100000] 3752.2590137175966 iter/sec (stddev: 0.000010858531668236477) 3739.601086885023 iter/sec (stddev: 0.00000992648538187787) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000000] 140.40038709724766 iter/sec (stddev: 0.00016401254393428585) 131.18903026045555 iter/sec (stddev: 0.00038125561866141663) 0.93
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1] 86274.0957365208 iter/sec (stddev: 0.0000010722223036428338) 80989.39074463009 iter/sec (stddev: 0.0000012110129414828392) 0.94
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10] 84355.43411529622 iter/sec (stddev: 0.0000010310808572208296) 79309.70584816845 iter/sec (stddev: 0.0000011958779336224347) 0.94
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100] 79157.94535826077 iter/sec (stddev: 0.0000012457673725259319) 74953.51345282809 iter/sec (stddev: 0.0000012835713135826173) 0.95
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000] 49976.53310485475 iter/sec (stddev: 0.0000014826555003338917) 48794.9571547677 iter/sec (stddev: 0.0000015717811052656286) 0.98
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10000] 12193.189605695963 iter/sec (stddev: 0.000005149390832994336) 12225.174472321532 iter/sec (stddev: 0.0000033623190187007763) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100000] 1481.4429549387823 iter/sec (stddev: 0.000010829099788681393) 1480.3443827345918 iter/sec (stddev: 0.000011895859762855421) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000000] 89.58698377223638 iter/sec (stddev: 0.0002734968423165804) 83.01554546039986 iter/sec (stddev: 0.00024848258253602973) 0.93
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1] 35015.50894306976 iter/sec (stddev: 0.000001964100241293005) 33782.12827431166 iter/sec (stddev: 0.000002916809119244211) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10] 31486.131335723778 iter/sec (stddev: 0.0000023988139253704785) 30262.995117883962 iter/sec (stddev: 0.000004386480103192354) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100] 29419.145526944016 iter/sec (stddev: 0.000002465178149371692) 28584.498842178884 iter/sec (stddev: 0.0000025355303515247884) 0.97
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000] 16061.757490331602 iter/sec (stddev: 0.000006612517182398222) 16396.450161050372 iter/sec (stddev: 0.000003623894036985433) 1.02
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10000] 3557.18424981657 iter/sec (stddev: 0.000008031033819589949) 3508.7538455719864 iter/sec (stddev: 0.000007352866894577145) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100000] 344.77888686276845 iter/sec (stddev: 0.00010945985005381324) 344.58827811714997 iter/sec (stddev: 0.000025106762164306846) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000000] 33.477630779618075 iter/sec (stddev: 0.00017357253191425107) 33.221214433842306 iter/sec (stddev: 0.0005896776176695691) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1] 35545.29605060457 iter/sec (stddev: 0.0000021856088330583195) 34260.55918667722 iter/sec (stddev: 0.000002249378531571876) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10] 31511.573172944245 iter/sec (stddev: 0.00000393629450966568) 30272.439165858967 iter/sec (stddev: 0.0000024891822955565943) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100] 29642.843560590896 iter/sec (stddev: 0.0000026658919813969677) 28849.889435276527 iter/sec (stddev: 0.000003617910640852997) 0.97
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000] 18089.069228684653 iter/sec (stddev: 0.000006918193526492354) 17856.20653625186 iter/sec (stddev: 0.000003291613361332473) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10000] 3491.8097957476766 iter/sec (stddev: 0.000018012426528770836) 3481.050059551582 iter/sec (stddev: 0.000008362220745166321) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100000] 357.37128499464205 iter/sec (stddev: 0.0000613391954877881) 358.88825254695564 iter/sec (stddev: 0.000112633232534823) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000000] 34.84064739366049 iter/sec (stddev: 0.0006417082828324574) 34.68747791727576 iter/sec (stddev: 0.0007776384077430484) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1] 35291.97440095348 iter/sec (stddev: 0.000002470452742479384) 33933.13986652924 iter/sec (stddev: 0.000003107982916012421) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10] 31520.735826186086 iter/sec (stddev: 0.000002312815131700888) 30456.166859014364 iter/sec (stddev: 0.0000027655437123767893) 0.97
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100] 29443.08756200246 iter/sec (stddev: 0.000002451667827170579) 28409.67998634113 iter/sec (stddev: 0.0000024524666986207938) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000] 17835.4009482554 iter/sec (stddev: 0.000003503787877043463) 17589.11129558288 iter/sec (stddev: 0.000004767860732159894) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10000] 3935.2705838880497 iter/sec (stddev: 0.000006791812501205348) 3899.773696927993 iter/sec (stddev: 0.000007634131673244873) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100000] 344.8738186366434 iter/sec (stddev: 0.00003150569039431166) 342.43775913770617 iter/sec (stddev: 0.00010493420307517577) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000000] 29.436261179018235 iter/sec (stddev: 0.00012839248187925093) 29.5920997075124 iter/sec (stddev: 0.00028189708845881246) 1.01
tests/uvdata/test_mwa_corr_fits.py::test_corr_fits_select_on_read 13.295300678033534 iter/sec (stddev: 0.02294854011727088)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=True] 16.602926355816198 iter/sec (stddev: 0.0012339234518244306)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=False] 0.21157986641140542 iter/sec (stddev: 0.01297667364311083)

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 33c24bf Previous: 40c0d8d Ratio
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1] 61124.15878960135 iter/sec (stddev: 0.0000018837145541080123) 60778.806038714385 iter/sec (stddev: 0.0000023437350905284458) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10] 60498.53467242654 iter/sec (stddev: 0.000003094417538905541) 60284.77579607704 iter/sec (stddev: 0.0000027533198342687247) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100] 58464.744753575185 iter/sec (stddev: 0.0000029720093201812236) 58681.72799878747 iter/sec (stddev: 0.0000026709053160305456) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000] 44662.78539071326 iter/sec (stddev: 0.00000377495401401646) 44819.604087060834 iter/sec (stddev: 0.0000030321597190013303) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10000] 15617.891689430067 iter/sec (stddev: 0.000006683198033957565) 15509.302854548823 iter/sec (stddev: 0.000006903583689305294) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100000] 1300.4589041134934 iter/sec (stddev: 0.00003954378316615441) 1288.9021169102937 iter/sec (stddev: 0.000028266700899147132) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000000] 93.89838798867993 iter/sec (stddev: 0.0002760212196484712) 93.31066506245273 iter/sec (stddev: 0.00028876938641150097) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1] 60567.055617739876 iter/sec (stddev: 0.000002074657102648837) 60528.55612808622 iter/sec (stddev: 0.000003532066407912847) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10] 60214.748334518874 iter/sec (stddev: 0.000002312184584363522) 59509.181874154034 iter/sec (stddev: 0.000003544633158707705) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100] 58264.840872171364 iter/sec (stddev: 0.00000278525716171322) 58102.07979474702 iter/sec (stddev: 0.000003038400665374578) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000] 44671.525761267185 iter/sec (stddev: 0.000003073732186108175) 44935.70053056049 iter/sec (stddev: 0.0000038023728651018874) 1.01
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10000] 15544.962502513374 iter/sec (stddev: 0.000008391823965553358) 15443.62972512248 iter/sec (stddev: 0.0000064317327433071355) 0.99
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100000] 1320.4927984768888 iter/sec (stddev: 0.00003854362923665864) 1269.4428107379222 iter/sec (stddev: 0.00007570027303646763) 0.96
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000000] 94.8567882871202 iter/sec (stddev: 0.00020702179254715553) 93.19146126852681 iter/sec (stddev: 0.0002761892280146529) 0.98
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1] 60649.624199996455 iter/sec (stddev: 0.0000020235078097068698) 60364.59339431826 iter/sec (stddev: 0.000002061898342642331) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10] 60419.221607581814 iter/sec (stddev: 0.000002436634315692548) 60478.65988404735 iter/sec (stddev: 0.000001824580863875963) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100] 57206.50597448007 iter/sec (stddev: 0.000002953825954446898) 57222.95397971307 iter/sec (stddev: 0.0000026092064466066092) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000] 38591.1209694798 iter/sec (stddev: 0.000003232194032824522) 37601.22287179883 iter/sec (stddev: 0.0000037700499849918904) 0.97
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10000] 9982.628422537857 iter/sec (stddev: 0.0000095253250081255) 10013.782976499115 iter/sec (stddev: 0.000005809191651612846) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100000] 960.6873986823172 iter/sec (stddev: 0.00003924209963827458) 964.1155949757014 iter/sec (stddev: 0.00004036785524252803) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000000] 74.05320059878828 iter/sec (stddev: 0.00016403007520586114) 73.32892302800886 iter/sec (stddev: 0.00014778550545984436) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1] 25257.08504274232 iter/sec (stddev: 0.000004088883257714314) 25311.320404150378 iter/sec (stddev: 0.000004806113301140857) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10] 23032.65830757646 iter/sec (stddev: 0.000004611515194598526) 22930.423186308664 iter/sec (stddev: 0.0000058168681240219536) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100] 21918.433042320066 iter/sec (stddev: 0.000005325884333472292) 21917.787281576475 iter/sec (stddev: 0.000004632538156521488) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000] 13122.360386791466 iter/sec (stddev: 0.00000647316162902458) 12674.641338369156 iter/sec (stddev: 0.000012668869418479674) 0.97
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10000] 2689.008583502887 iter/sec (stddev: 0.000014265587255197345) 2827.69171011919 iter/sec (stddev: 0.000018576131443862108) 1.05
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100000] 225.10399286444823 iter/sec (stddev: 0.00008316193961640344) 267.09689006146345 iter/sec (stddev: 0.0000679397002542033) 1.19
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000000] 20.33503224458507 iter/sec (stddev: 0.0019439408408111246) 22.576578527377425 iter/sec (stddev: 0.0002508288513246944) 1.11
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1] 25045.044526818703 iter/sec (stddev: 0.000006822311865423074) 25400.217035497513 iter/sec (stddev: 0.0000044839099529804864) 1.01
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10] 23041.88940420444 iter/sec (stddev: 0.000004977278797204061) 22902.503071457475 iter/sec (stddev: 0.000006192803445219996) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100] 20653.14701421321 iter/sec (stddev: 0.000012959697759969633) 21981.746126319034 iter/sec (stddev: 0.000005665535453127166) 1.06
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000] 14019.477037181761 iter/sec (stddev: 0.000005923259480800406) 14052.210599930386 iter/sec (stddev: 0.0000065301199385711345) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10000] 2634.3030871345854 iter/sec (stddev: 0.000019273383049653794) 2717.5063647892403 iter/sec (stddev: 0.00001950354198571261) 1.03
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100000] 274.85093779259694 iter/sec (stddev: 0.00013056494980126447) 284.44247428001887 iter/sec (stddev: 0.00006514656443600496) 1.03
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000000] 21.058560218576133 iter/sec (stddev: 0.0008926315915774003) 23.323991426877864 iter/sec (stddev: 0.00028999625173755376) 1.11
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1] 25333.181848075674 iter/sec (stddev: 0.000004431554070082058) 25376.577327050418 iter/sec (stddev: 0.000004488233654196052) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10] 23137.156952188598 iter/sec (stddev: 0.000004922994338480932) 23125.56318036066 iter/sec (stddev: 0.0000047977847858714896) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100] 22001.66259064289 iter/sec (stddev: 0.000005196917139476702) 22039.64085735625 iter/sec (stddev: 0.0000045543641141902555) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000] 14100.475663024292 iter/sec (stddev: 0.0000057577536047613556) 14107.085039875317 iter/sec (stddev: 0.000005580702605738785) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10000] 3062.931844885156 iter/sec (stddev: 0.00002189124073647439) 3116.3482978192455 iter/sec (stddev: 0.000018119349025000613) 1.02
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100000] 292.5214190683747 iter/sec (stddev: 0.00007271073065715187) 296.9235490187895 iter/sec (stddev: 0.00006497941364537871) 1.02
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000000] 19.081789990207646 iter/sec (stddev: 0.0008533255239242563) 18.846292185180197 iter/sec (stddev: 0.00019127321398483514) 0.99
tests/uvdata/test_mwa_corr_fits.py::test_corr_fits_select_on_read 10.62236535162014 iter/sec (stddev: 0.006495806400980091)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=True] 9.350942575010137 iter/sec (stddev: 0.0010233258195223992)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=False] 0.08324235776053689 iter/sec (stddev: 0.054354241405006644)

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 33c24bf Previous: 40c0d8d Ratio
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1] 58310.77777540568 iter/sec (stddev: 0.00023296457955300007) 39231.43822331587 iter/sec (stddev: 0.000014429110349124917) 0.67
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10] 88277.46139571954 iter/sec (stddev: 0.00012366696234057925) 41453.35759663936 iter/sec (stddev: 0.000012061230703750371) 0.47
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100] 100710.77362732354 iter/sec (stddev: 0.000022846610012893532) 43055.76428662951 iter/sec (stddev: 0.000006087795837976203) 0.43
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000] 89346.10906566841 iter/sec (stddev: 0.000024586478483228463) 29550.358780653623 iter/sec (stddev: 0.00002101623123730988) 0.33
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10000] 30158.414114760777 iter/sec (stddev: 0.000054030920524372435) 17552.818103674355 iter/sec (stddev: 0.000009432794899844771) 0.58
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100000] 2758.4863553087234 iter/sec (stddev: 0.0002128438706721023) 2959.0261232859543 iter/sec (stddev: 0.000060242261385725744) 1.07
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000000] 143.07238441689148 iter/sec (stddev: 0.001605161784792159) 95.8399989157799 iter/sec (stddev: 0.0010992455188257055) 0.67
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1] 112549.27504719522 iter/sec (stddev: 0.00001118061547767051) 39278.54797160817 iter/sec (stddev: 0.000011991082692618817) 0.35
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10] 120028.55243083164 iter/sec (stddev: 0.000007646872175933139) 35128.74152229083 iter/sec (stddev: 0.00004070451585692954) 0.29
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100] 96960.47685874034 iter/sec (stddev: 0.00010397514614093809) 43821.35063512019 iter/sec (stddev: 0.000004313396861700624) 0.45
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000] 90727.69571753997 iter/sec (stddev: 0.00004834593003194553) 32456.36116013648 iter/sec (stddev: 0.000016553626482563985) 0.36
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10000] 32202.911393147373 iter/sec (stddev: 0.00007844536173496192) 17405.64432667927 iter/sec (stddev: 0.0000052939724653968485) 0.54
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100000] 2125.094213066899 iter/sec (stddev: 0.0003598372177279552) 1909.92059119176 iter/sec (stddev: 0.0002951935023522285) 0.90
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000000] 138.9514088972642 iter/sec (stddev: 0.00167423672508843) 90.97511092685083 iter/sec (stddev: 0.0019419963367773587) 0.65
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1] 82835.97932566865 iter/sec (stddev: 0.00007975860151005549) 41832.494513015285 iter/sec (stddev: 0.00000953603888689252) 0.51
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10] 91680.87632493024 iter/sec (stddev: 0.0001073297791722623) 38728.23123599274 iter/sec (stddev: 0.000025668009685182885) 0.42
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100] 108561.37763961856 iter/sec (stddev: 0.00002037276183879328) 43634.50326900448 iter/sec (stddev: 0.000005458448206227694) 0.40
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000] 90236.51973074516 iter/sec (stddev: 0.000017245471531907926) 31046.963558480853 iter/sec (stddev: 0.000016344675309593786) 0.34
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10000] 24404.449241252787 iter/sec (stddev: 0.00006301543057677098) 17465.784311273626 iter/sec (stddev: 0.000005724763570742342) 0.72
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100000] 2078.351077052314 iter/sec (stddev: 0.00034026468027900116) 1878.7101858576677 iter/sec (stddev: 0.0002506152488579945) 0.90
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000000] 138.58217598497646 iter/sec (stddev: 0.001582413404096686) 85.06042002929514 iter/sec (stddev: 0.00342194524001305) 0.61
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1] 39426.54054923801 iter/sec (stddev: 0.000032121263239857083) 15790.732350976801 iter/sec (stddev: 0.00003020528318322386) 0.40
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10] 37862.49235607379 iter/sec (stddev: 0.000045857842759584115) 16870.47857778403 iter/sec (stddev: 0.00001722515939448345) 0.45
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100] 29138.47459915931 iter/sec (stddev: 0.00008969701281484171) 15244.32713434297 iter/sec (stddev: 0.00007626566885303217) 0.52
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000] 12015.84856954836 iter/sec (stddev: 0.0000722596947505561) 9764.984086134125 iter/sec (stddev: 0.000033927650787731534) 0.81
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10000] 1655.7465166387296 iter/sec (stddev: 0.0009850235199632652) 2665.0050555145845 iter/sec (stddev: 0.00011905781287309783) 1.61
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100000] 126.83850896056724 iter/sec (stddev: 0.0034811572368656186) 273.3485123981955 iter/sec (stddev: 0.0009984477574945807) 2.16
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000000] 11.619461193482055 iter/sec (stddev: 0.01144772260030686) 21.985674170444742 iter/sec (stddev: 0.006252089771457042) 1.89
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1] 39521.477702210825 iter/sec (stddev: 0.00010584676880781868) 17405.739259344908 iter/sec (stddev: 0.000022020374384944832) 0.44
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10] 30260.3559828602 iter/sec (stddev: 0.0002516436920870417) 15754.009507409193 iter/sec (stddev: 0.000039072825839748645) 0.52
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100] 28336.56400551105 iter/sec (stddev: 0.00023514401638995318) 14700.20435812673 iter/sec (stddev: 0.00003645097805641582) 0.52
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000] 13658.59619430885 iter/sec (stddev: 0.00006248585825424841) 9519.3251295816 iter/sec (stddev: 0.00011772516417868314) 0.70
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10000] 1162.8559494152262 iter/sec (stddev: 0.0010667195617891725) 1825.6202154115706 iter/sec (stddev: 0.00041270528941768364) 1.57
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100000] 136.3574822175322 iter/sec (stddev: 0.003467120224192632) 270.03318921319146 iter/sec (stddev: 0.000650670445538452) 1.98
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000000] 11.93783671172181 iter/sec (stddev: 0.014668070502687468) 20.369367399965284 iter/sec (stddev: 0.006563587444410681) 1.71
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1] 38878.035691854704 iter/sec (stddev: 0.00014150959786264562) 17464.242142995896 iter/sec (stddev: 0.000021941475308899643) 0.45
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10] 32867.12511102205 iter/sec (stddev: 0.00021216482237953715) 15225.163892259348 iter/sec (stddev: 0.000025030305535401578) 0.46
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100] 30937.93519601174 iter/sec (stddev: 0.00019172418920023897) 15991.417547329485 iter/sec (stddev: 0.00001699958210145616) 0.52
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000] 12796.069598952907 iter/sec (stddev: 0.0002514140724931419) 11041.933006921863 iter/sec (stddev: 0.00002293027306741954) 0.86
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10000] 1504.214547361232 iter/sec (stddev: 0.000666297338690515) 3088.9116768751633 iter/sec (stddev: 0.00007145644436022479) 2.05
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100000] 117.41578288397706 iter/sec (stddev: 0.002346854821482889) 340.83972396270707 iter/sec (stddev: 0.00023230431403730602) 2.90
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000000] 10.160543230947882 iter/sec (stddev: 0.024450451475677246) 19.320825038785255 iter/sec (stddev: 0.010205906462824835) 1.90
tests/uvdata/test_mwa_corr_fits.py::test_corr_fits_select_on_read 13.834408839943448 iter/sec (stddev: 0.02405698474246037)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=True] 16.805022227950044 iter/sec (stddev: 0.014209632189666225)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=False] 0.28275066958365463 iter/sec (stddev: 0.1509639000245932)

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 33c24bf Previous: 40c0d8d Ratio
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100000] 126.83850896056724 iter/sec (stddev: 0.0034811572368656186) 273.3485123981955 iter/sec (stddev: 0.0009984477574945807) 2.16
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10000] 1504.214547361232 iter/sec (stddev: 0.000666297338690515) 3088.9116768751633 iter/sec (stddev: 0.00007145644436022479) 2.05
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100000] 117.41578288397706 iter/sec (stddev: 0.002346854821482889) 340.83972396270707 iter/sec (stddev: 0.00023230431403730602) 2.90

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 33c24bf Previous: 40c0d8d Ratio
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1] 36657.134920233664 iter/sec (stddev: 0.0000432760359937031) 39231.43822331587 iter/sec (stddev: 0.000014429110349124917) 1.07
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10] 39610.56823737075 iter/sec (stddev: 0.0000203200135453999) 41453.35759663936 iter/sec (stddev: 0.000012061230703750371) 1.05
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100] 42941.50148759539 iter/sec (stddev: 0.000008470187313563801) 43055.76428662951 iter/sec (stddev: 0.000006087795837976203) 1.00
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000] 33593.19902528915 iter/sec (stddev: 0.000015615479261549845) 29550.358780653623 iter/sec (stddev: 0.00002101623123730988) 0.88
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=10000] 16116.5629143379 iter/sec (stddev: 0.000023811059857863074) 17552.818103674355 iter/sec (stddev: 0.000009432794899844771) 1.09
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=100000] 1995.318630575702 iter/sec (stddev: 0.00014000370563967257) 2959.0261232859543 iter/sec (stddev: 0.000060242261385725744) 1.48
tests/utils/test_bls.py::test_bls_to_ant[min=0-len=1000000] 90.08822558232083 iter/sec (stddev: 0.0010866669020329397) 95.8399989157799 iter/sec (stddev: 0.0010992455188257055) 1.06
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1] 37385.63423422583 iter/sec (stddev: 0.000021892561579438432) 39278.54797160817 iter/sec (stddev: 0.000011991082692618817) 1.05
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10] 41199.55917453149 iter/sec (stddev: 0.000010089128058898134) 35128.74152229083 iter/sec (stddev: 0.00004070451585692954) 0.85
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100] 37210.95349885631 iter/sec (stddev: 0.00002861550335530468) 43821.35063512019 iter/sec (stddev: 0.000004313396861700624) 1.18
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000] 33102.82664338561 iter/sec (stddev: 0.000011962143980113756) 32456.36116013648 iter/sec (stddev: 0.000016553626482563985) 0.98
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=10000] 16971.59227820327 iter/sec (stddev: 0.00001920642362254302) 17405.64432667927 iter/sec (stddev: 0.0000052939724653968485) 1.03
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=100000] 3028.2648689715033 iter/sec (stddev: 0.000030309886661703505) 1909.92059119176 iter/sec (stddev: 0.0002951935023522285) 0.63
tests/utils/test_bls.py::test_bls_to_ant[min=65536-len=1000000] 109.99480481275648 iter/sec (stddev: 0.0008360051789721133) 90.97511092685083 iter/sec (stddev: 0.0019419963367773587) 0.83
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1] 44977.602878210615 iter/sec (stddev: 0.000003473712064645458) 41832.494513015285 iter/sec (stddev: 0.00000953603888689252) 0.93
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10] 43056.727178113426 iter/sec (stddev: 0.00006467948224356355) 38728.23123599274 iter/sec (stddev: 0.000025668009685182885) 0.90
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100] 42018.1428580108 iter/sec (stddev: 0.000018322857151267023) 43634.50326900448 iter/sec (stddev: 0.000005458448206227694) 1.04
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000] 31991.945273036414 iter/sec (stddev: 0.00003124411086276946) 31046.963558480853 iter/sec (stddev: 0.000016344675309593786) 0.97
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=10000] 16498.12512033151 iter/sec (stddev: 0.000009223454467054433) 17465.784311273626 iter/sec (stddev: 0.000005724763570742342) 1.06
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=100000] 2121.0836490948545 iter/sec (stddev: 0.0002160624282312295) 1878.7101858576677 iter/sec (stddev: 0.0002506152488579945) 0.89
tests/utils/test_bls.py::test_bls_to_ant[min=4259840-len=1000000] 90.69936248823632 iter/sec (stddev: 0.0013398747048491933) 85.06042002929514 iter/sec (stddev: 0.00342194524001305) 0.94
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1] 18714.907125353788 iter/sec (stddev: 0.00004030308113714155) 15790.732350976801 iter/sec (stddev: 0.00003020528318322386) 0.84
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10] 15726.387850639652 iter/sec (stddev: 0.00003274200299555889) 16870.47857778403 iter/sec (stddev: 0.00001722515939448345) 1.07
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100] 13439.623269968075 iter/sec (stddev: 0.00003529884080337173) 15244.32713434297 iter/sec (stddev: 0.00007626566885303217) 1.13
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000] 8899.74341089211 iter/sec (stddev: 0.00005997371297306786) 9764.984086134125 iter/sec (stddev: 0.000033927650787731534) 1.10
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=10000] 2750.610281597585 iter/sec (stddev: 0.000055627695658865834) 2665.0050555145845 iter/sec (stddev: 0.00011905781287309783) 0.97
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=100000] 275.04248827474095 iter/sec (stddev: 0.0018336856932951154) 273.3485123981955 iter/sec (stddev: 0.0009984477574945807) 0.99
tests/utils/test_bls.py::test_ants_to_bls[min=0-len=1000000] 19.644215012608274 iter/sec (stddev: 0.008951355126029362) 21.985674170444742 iter/sec (stddev: 0.006252089771457042) 1.12
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1] 17351.821569250988 iter/sec (stddev: 0.000025612554370713538) 17405.739259344908 iter/sec (stddev: 0.000022020374384944832) 1.00
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10] 14395.20996039934 iter/sec (stddev: 0.00003282501496431723) 15754.009507409193 iter/sec (stddev: 0.000039072825839748645) 1.09
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100] 15329.670680388723 iter/sec (stddev: 0.000028682951543998425) 14700.20435812673 iter/sec (stddev: 0.00003645097805641582) 0.96
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000] 11241.50943702348 iter/sec (stddev: 0.000025621492526806595) 9519.3251295816 iter/sec (stddev: 0.00011772516417868314) 0.85
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=10000] 1984.2809767715942 iter/sec (stddev: 0.00032566127609991115) 1825.6202154115706 iter/sec (stddev: 0.00041270528941768364) 0.92
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=100000] 245.552005342325 iter/sec (stddev: 0.0009419194734442907) 270.03318921319146 iter/sec (stddev: 0.000650670445538452) 1.10
tests/utils/test_bls.py::test_ants_to_bls[min=65536-len=1000000] 18.039923808119095 iter/sec (stddev: 0.005694441694047034) 20.369367399965284 iter/sec (stddev: 0.006563587444410681) 1.13
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1] 16725.03132157682 iter/sec (stddev: 0.00003753024032102003) 17464.242142995896 iter/sec (stddev: 0.000021941475308899643) 1.04
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10] 13373.492310543505 iter/sec (stddev: 0.00003477498077761254) 15225.163892259348 iter/sec (stddev: 0.000025030305535401578) 1.14
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100] 14069.935646201862 iter/sec (stddev: 0.00004150727503448165) 15991.417547329485 iter/sec (stddev: 0.00001699958210145616) 1.14
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000] 8759.451607757299 iter/sec (stddev: 0.0004701107481784434) 11041.933006921863 iter/sec (stddev: 0.00002293027306741954) 1.26
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=10000] 2491.0564535642975 iter/sec (stddev: 0.00014025910237047066) 3088.9116768751633 iter/sec (stddev: 0.00007145644436022479) 1.24
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=100000] 264.3589651339148 iter/sec (stddev: 0.0009765783462072808) 340.83972396270707 iter/sec (stddev: 0.00023230431403730602) 1.29
tests/utils/test_bls.py::test_ants_to_bls[min=4259840-len=1000000] 18.84132106544117 iter/sec (stddev: 0.011849761472505509) 19.320825038785255 iter/sec (stddev: 0.010205906462824835) 1.03
tests/uvdata/test_mwa_corr_fits.py::test_corr_fits_select_on_read 7.781571959864803 iter/sec (stddev: 0.04389859544877701)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=True] 9.670756331341801 iter/sec (stddev: 0.011938922281831344)
tests/uvdata/test_mwa_corr_fits.py::test_van_vleck[cheby=False] 0.12832427939450888 iter/sec (stddev: 0.44718002117903055)

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.