Skip to content

Conversation

@ankitml
Copy link
Collaborator

@ankitml ankitml commented Dec 22, 2025

Attempt to fix paradedb/paradedb#3769

Add GitGraphAnalyzer class for finding previous benchmarks based on git ancestry
instead of execution time. This fixes release branch comparisons where PRs
were comparing against wrong baseline commits.

- Add src/gitGraph.ts with git analysis functions
- Modify addBenchmarkEntry.ts to use git-graph aware previous benchmark selection
- Update default_index_html.ts to sort visualization data by commit timestamp

Fixes #3769
Add comprehensive tests for GitGraphAnalyzer and addBenchmarkEntry integration.
All 227 tests pass successfully.
ankitml and others added 3 commits December 23, 2025 13:41
Copy link

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks, although it looks like there is some code that should be removed around sorting by timestamps?

If the "insert new datapoint" code always runs, then there should never be a need to sort the entire dataset, because it should be created in inserted order...?

@ankitml
Copy link
Collaborator Author

ankitml commented Dec 23, 2025

Thanks, although it looks like there is some code that should be removed around sorting by timestamps?

If the "insert new datapoint" code always runs, then there should never be a need to sort the entire dataset, because it should be created in inserted order...?

It is a bit disorganized but Ideally we should keep both, just because at some point we can upstream it. In that case sorting method would be some sort of config to choose.

@ankitml
Copy link
Collaborator Author

ankitml commented Dec 26, 2025

Organized it better, so making it upstream will be easier.

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.

Sort benchmark graphs and PR comments by the git-graph

3 participants