Skip to content

Commit

Permalink
First pass of four df size benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcom committed Jul 29, 2022
1 parent afdd260 commit ac1f525
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions python/cuspatial/benchmarks/io/bench_geoseries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2022, NVIDIA CORPORATION.

"""Benchmarks of GeoSeries methods."""

import pytest
from config import cuspatial, cupy
from utils import benchmark_with_object


def bench_from_geoseries_100(benchmark, gpdf_100):
benchmark(cuspatial.from_geopandas, gpdf_100["geometry"])


def bench_from_geoseries_1000(benchmark, gpdf_1000):
benchmark(cuspatial.from_geopandas, gpdf_1000["geometry"])


def bench_from_geoseries_10000(benchmark, gpdf_10000):
benchmark(cuspatial.from_geopandas, gpdf_10000["geometry"])


def bench_from_geoseries_100000(benchmark, gpdf_100000):
benchmark(cuspatial.from_geopandas, gpdf_100000["geometry"])

0 comments on commit ac1f525

Please sign in to comment.