Skip to content

Commit

Permalink
Add benchmarks for larger catalogs. (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu authored Apr 25, 2024
1 parent 4ba21b1 commit 5653387
Show file tree
Hide file tree
Showing 9 changed files with 226,651 additions and 0 deletions.
11 changes: 11 additions & 0 deletions benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SMALL_SKY_DIR_NAME = "small_sky"
SMALL_SKY_ORDER1 = "small_sky_order1"
SMALL_SKY_XMATCH_NAME = "small_sky_xmatch"
BENCH_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")


def load_small_sky():
Expand Down Expand Up @@ -62,3 +63,13 @@ def time_box_filter_on_partition():
np.linspace(-1000, 1000, 100_000), columns=[metadata.catalog_info.ra_column]
)
box_filter(mock_partition_df, ra=(-20, 40), dec=None, metadata=metadata).compute()


def time_create_midsize_catalog():
path = os.path.join(BENCH_DATA_DIR, "midsize_catalog")
return lsdb.read_hipscat(path)


def time_create_large_catalog():
path = os.path.join(BENCH_DATA_DIR, "large_catalog")
return lsdb.read_hipscat(path)
Binary file added benchmarks/data/large_catalog/_common_metadata
Binary file not shown.
Binary file added benchmarks/data/large_catalog/_metadata
Binary file not shown.
15 changes: 15 additions & 0 deletions benchmarks/data/large_catalog/catalog_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"catalog_name": {
"catalog_name": "midsize_catalog",
"catalog_type": "object",
"total_rows": 3000000000,
"epoch": "J2000",
"ra_column": "ra",
"dec_column": "dec"
},
"catalog_type": "object",
"total_rows": null,
"epoch": "J2000",
"ra_column": "ra",
"dec_column": "dec"
}
Loading

0 comments on commit 5653387

Please sign in to comment.