Files
mysql-haversine-benchmark/readme.md
Nettika d8b0777a3b Test indexed vs non-indexed datasets
Improve benchmark UI

Disable function and php tests (they are very slow)
2025-05-05 13:58:35 -07:00

22 lines
766 B
Markdown

# MySQL Haversine Benchmark
1. Run setup
```sh
mysql your-database-name < setup.sql
```
This will (re)create:
- Four tables: `floats`, `floats_indexed`, `points`, and `points_indexed`.
- Nine procedures: `generate_coords`, `float_coords_within_radius`,
`float_indexed_coords_within_radius`, `hybrid_coords_within_radius`
`hybrid_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: `haversine` and `haversine_alt`.
And then will generate and insert 1,000,000 random coordinates into each of
the four tables.
2. Navigate to `index.php` in your browser and login.