-
Notifications
You must be signed in to change notification settings - Fork 14
bench script + fixed python bench #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: nuts_rice <[email protected]>
f879d42 to
0e2736e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer using a basic pyproject.toml here using uv https://docs.astral.sh/uv/, so the benches are repeatable
| geoindex-rs | ||
| geopandas | ||
| pyogrio | ||
| pyarrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're also missing requests, numpy, shapely from the dependency list
| import shapely | ||
|
|
||
|
|
||
| gdf = gpd.read_file("Utah.geojson.zip", engine="pyogrio") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is from https://github.com/microsoft/USBuildingFootprints#download-links, with a download link (unsure if this is persistent) of https://minedbuildings.z5.web.core.windows.net/legacy/usbuildings-v2/Utah.geojson.zip
An attempt to address #120 by having a script to run both rust and python benchmarks
The script so far:
generate_data.pyandrtree.pycargo benchfor regular target and therayonfeaturertree.pyrtree.pyis WIP now, I attempted to follow closely tobench.pywith some fixes for building the r-tree.The resources used by
generate_data.pyandbench.pywere broken so I've replaced them with other geojson and parquet datasets respectively