-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
The Slog admin page has tabs to view reports, compare results etc.
It doesn't yet have the ability to run performance tests.
It would be nice to be able to drive the performance comparison testing directly from the Slog admin page.
Requirements
There would be two methods
- Run the same query
limittimes. - Run a set of queries from a filtered file, performing up to
limittimes.
Proposed solution
MVP
- Develop a Driver tab that runs XMLHttpRequests to the server
- Support a loop that will run the request
limittimes - Provide visual feedback so show that the loop is working and the results
Optional extras
- Make it easily cancellable
- Prevent the Run button from being pressed multiple times
- Support loading a filtered file to provide the URLs for each request
- Dynamically display the results in a chart
- Allow setting of the daily trace summary file name from the Driver tab
Assumptions, Limitations, Questions
- It'll be easier to write using
XMLHttpRequeststhanfetch(). - I can write it using native JavaScript
- No need to use React / Gutenberg - how possible would that be anyway?
- No need for internationalization.
- Logic only needed for admin.
- It'll be easy to write as plain HTML and JavaScript then convert to WordPress
- Could most of the driver logic be written as ALL JavaScript?
- Is CSS needed to style the output?