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

refactor(bench): continuous benchmarking improvements #14821

Merged
merged 26 commits into from
Jun 28, 2022

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Jun 8, 2022

This commit improves Deno's benchmarking workflow like:

  • benchmark filtering. cargo bench --bench deno_bench -- bundle
  • cron workflow to run benchmarks.
  • upload metrics to a GCS bucket anhd use grafana for visualization instead of deno.land/benchmarks

@littledivy littledivy marked this pull request as draft June 8, 2022 15:13
@littledivy littledivy changed the title refactor(bench): Continuous bench refactor(bench): continuous benchmarking improvements Jun 8, 2022
@littledivy littledivy marked this pull request as ready for review June 14, 2022 05:03
@littledivy littledivy requested a review from ry June 14, 2022 05:03
@littledivy
Copy link
Member Author

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

Update the cli/bench/README.md file with examples of how to run it.

pub async fn new() -> Self {
dotenv::dotenv().ok();
let gcloud_client =
match std::env::var("CI").map(|_| std::env::var("GOOGLE_SVC_KEY")) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this in 1password?

Copy link
Member Author

Choose a reason for hiding this comment

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

yup

@@ -4977,16 +5103,27 @@ version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"

[[package]]
Copy link
Member

Choose a reason for hiding this comment

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

It's concerning how many changed happened in this file... Is there a way we could reuse the same version (for example by cargo update --package that imports this version)

Copy link
Member Author

Choose a reason for hiding this comment

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

cargo update --package url:2.2.2 does not work. Maybe because the difference is of a major version. I'll submit an upstream patch to upgrade url https://github.com/Byron/google-apis-rs/blob/f00ca37fa4e96657f051292fc8ac610b80373c65/etc/api/type-api.yaml?q=1.7#L30

Copy link
Member

Choose a reason for hiding this comment

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

Thanks

@littledivy littledivy merged commit ab11b45 into denoland:main Jun 28, 2022
dsherret pushed a commit to dsherret/deno that referenced this pull request Jun 30, 2022
bartlomieju added a commit to bartlomieju/deno that referenced this pull request Jul 11, 2022
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.

None yet

4 participants