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

rpc benchmark easy: custom file path as log dest. #21533

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

Conversation

gegaowp
Copy link
Contributor

@gegaowp gegaowp commented Mar 18, 2025

Description

title

Test plan

local run of the pull script


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2025 8:46pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2025 8:46pm

@gegaowp gegaowp requested review from amnn, emmazzz and wlmyng March 18, 2025 20:45
@gegaowp gegaowp temporarily deployed to sui-typescript-aws-kms-test-env March 18, 2025 20:45 — with GitHub Actions Inactive
@@ -220,8 +220,15 @@ async fn run() -> Result<(), Box<dyn Error>> {
info!("Found {} logs for method: {}", count, method);
}

// Write logs to file in ascending timestamp order
let file = File::create("sampled_read_requests.jsonl")?;
let file_path = env::var("FILE_PATH").unwrap_or_else(|_| ".".to_string());
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: FILE_PATH is quite a generic name for this environment variable -- what about OUTPUT_DIR or something?

It may also be worth considering using clap for argument parsing now -- you have quite a few arguments to this binary now.

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