A SQL database and an interactive grapher in a single HTML file
5 minute read Published: 2021-05-04Glassbench is a Rust micro-benchmark harness. It uses a SQLite database to store bench measurements.
I wanted to give it the option to open an interactive data viewer and grapher, with ability to search the history.
An usual web based solution for that is to run a simple web server.
But Glassbench is executed by cargo and immediately quits and I didn't want it to leave behind anything to clean, especially not daemons. Besides, when you open a single HTML local file, it can't query additional resources, due to browser's security protections.
So I decided to make it a single temporary html page opened in the user's browser.