Skip to content

Improve regression line rendering #87

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vmiura
Copy link
Contributor

@vmiura vmiura commented Aug 1, 2025

Regressions on the time graph used a very rough 'percentage' calculation
based on the inflection complexity and overall start and end complexity of a
ramp. This can sometimes be significantly different from the actual sample
data, since samples do not take a uniform amount of time.

Improve this by finding the inflection complexity point in the sample data.

Graphs before (note, the very compressed regression line for the 1st ramp)
old_inlection_time

Graphs after
new_inflection_time

Copy link

netlify bot commented Aug 1, 2025

Deploy Preview for webkit-motionmark-preview ready!

Name Link
🔨 Latest commit f9a389f
🔍 Latest deploy log https://app.netlify.com/projects/webkit-motionmark-preview/deploys/689273051c068b00093bce8a
😎 Deploy Preview https://deploy-preview-87--webkit-motionmark-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vmiura vmiura force-pushed the improve_regression_line_rendering branch 3 times, most recently from b73a94d to a600ad5 Compare August 4, 2025 17:02
// Find the inflection point based on complexity
while (inflectionIndex < endIndex) {
const complexity = controllerSamples.getFieldInDatum(inflectionIndex + 1, Strings.json.complexity);
if (complexity < inflectionComplexity)
Copy link
Contributor

Choose a reason for hiding this comment

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

This presupposes that ramps are going downward; if we change that it breaks. Maybe we should just mark the complexity change frames in the data?

Is this the end of a set of frames with fixed complexity? If so, just check for a change in complexity. This and the above chunk could use a helper function that just finds the next frame which has a complexity change.

@vmiura vmiura force-pushed the improve_regression_line_rendering branch 2 times, most recently from d6cfcac to e580b94 Compare August 5, 2025 16:47
Regressions on the time graph used a very rough 'percentage' calculation
based on the inflection complexity and overall start and end complexity of a
ramp. This can sometimes be significantly different from the actual sample
data, since samples do not take a uniform amount of time.

Improve this by finding the inflection complexity point in the sample data.
@vmiura vmiura force-pushed the improve_regression_line_rendering branch from e580b94 to f9a389f Compare August 5, 2025 21:09
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.

2 participants