Skip to content

Conversation

@swebb2066
Copy link
Contributor

This PR add a chart generated on the client side from data in the html table.

image

@swebb2066 swebb2066 marked this pull request as ready for review November 27, 2025 01:12
@swebb2066
Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some thoughts:

  1. 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
  2. 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.

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test code kept intentionally?

Copy link
Contributor Author

@swebb2066 swebb2066 Nov 28, 2025

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.

Copy link
Contributor Author

@swebb2066 swebb2066 left a 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.

@rm5248
Copy link
Contributor

rm5248 commented Nov 30, 2025

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

@swebb2066 swebb2066 merged commit eb9d9ce into master Dec 1, 2025
34 checks passed
@swebb2066 swebb2066 deleted the plot_appending_a_log_message branch December 1, 2025 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants