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

chore: introduce benchmarking for rust #4552

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

Conversation

benfdking
Copy link
Contributor

  • introduces a criterion based bench based on the long sql
  • introduces serde serializing and deserializing that is not built into the main release
  • introduces some json files which are just simple serialization of a set of configs taken from sqlglot
  • introduces gha action that compares performance in a pr to main to check for regressions

@benfdking benfdking force-pushed the introducing_benchmarking branch from 1874140 to c3388f2 Compare December 30, 2024 14:15
tokenizer_settings
}
}
#[cfg(feature = "profiling")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing empty line?

pub fn write_json_to_string(&self) {
let json = serde_json::to_string(self).unwrap();
let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
.join(".hacking/tokenizer_settings.json");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this path expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix this is a hangover from me trying to clean things up 🙏 for spotting.

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