Skip to content
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

Cut down on benchmarking metrics to improve build speeds #167

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

OskarDamkjaer
Copy link
Collaborator

@OskarDamkjaer OskarDamkjaer commented Jan 22, 2024

Let's set something up in grafana for alerts, rather than build twice on the PR itself 👍

@OskarDamkjaer OskarDamkjaer changed the title cut down on bench tests to make the job faster Cut down on benchmarking metrics to improve build speeds Jan 23, 2024
@OskarDamkjaer OskarDamkjaer marked this pull request as ready for review January 23, 2024 08:19
@OskarDamkjaer OskarDamkjaer assigned ncordon and unassigned ncordon Jan 23, 2024
Comment on lines 21 to 35
.add('simple - parse', function () {
parse(simpleQuery);
})
.add('simple - highlight', function () {
parserWrapper.clearCache();
applySyntaxColouring(simpleQuery);
})
.add('simple - validate syntax', function () {
parserWrapper.clearCache();
validateSyntax(simpleQuery, benchmarkingMediumSizeSchema);
})
.add('simple - autocomplete next statement', function () {
parserWrapper.clearCache();
autocomplete(simpleQuery, benchmarkingMediumSizeSchema);
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we removing benchmarks? Wouldn't it be better to leave them but just run them on merge to main?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was in the "reduce gh minute" mindset, so I removed some that didn't feel like they were super impactful, to see if the build got noticeably faster. But you're right, I think we're better off keeping them - i added them back now

@OskarDamkjaer OskarDamkjaer merged commit 7768efd into main Jan 29, 2024
3 checks passed
@OskarDamkjaer OskarDamkjaer deleted the faster_perf_tests branch January 29, 2024 10:23
ncordon pushed a commit that referenced this pull request Feb 5, 2024
* cut down on bench tests to make the job faster

* don't run on PRs

* keep benchmarks
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