-
Notifications
You must be signed in to change notification settings - Fork 130
Add a chart to the web-site performance data #567
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
Conversation
|
The staging web-site is available for review |
| benchmark_pattern.push(new RegExp("Async, Sending (.*) using ([A-Za-z <]+)$")); | ||
| const value_regex_pattern = new RegExp("([0-9]+) ns") | ||
|
|
||
| // Extract the data |
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.
some thoughts:
- instead of extracting the data from the table, we can have a JSON file generated from the benchmark application that can easily be sucked into the JS code
- if we generate the JSON file, should we just generate the table on the fly? this could be done with a simple python script during the build process if we want to keep the data static.
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.
It is simpler (zero maintenance) to use the data in the page to generate the graph.
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.
test code kept intentionally?
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 found a test was necessary to quickly iterate through the vast landscape of echarts options. I am agnostic on whether it should be in the repository.
swebb2066
left a comment
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.
Generating the graph on the client side using echarts.js have the minor downside of the download cost of the 1.5MB echarts.js file.
Generating a .png using python has the downside of requiring python+matplotlib being available when publishing the web-site.
I am not sure which to prefer.
The compressed echarts is only 540k: https://echarts.apache.org/en/builder.html |
This PR add a chart generated on the client side from data in the html table.