766 B
766 B
MySQL Haversine Benchmark
-
Run setup
mysql your-database-name < setup.sqlThis will (re)create:
- Four tables:
floats,floats_indexed,points, andpoints_indexed. - Nine procedures:
generate_coords,float_coords_within_radius,float_indexed_coords_within_radius,hybrid_coords_within_radiushybrid_coords_within_radius_point,hybrid_indexed_coords_within_radius,hybrid_indexed_coords_within_radius_point,point_coords_within_radius,point_indexed_coords_within_radius - Two functions:
haversineandhaversine_alt.
And then will generate and insert 1,000,000 random coordinates into each of the four tables.
- Four tables:
-
Navigate to
index.phpin your browser and login.