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

ci(bench): refactor benchmark configuration and update related files #1574

Merged
merged 5 commits into from
Apr 15, 2024

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Apr 15, 2024

Summary

This commit refactors the configuration of the benchmarking function, moving the setup code into a new config.rs file. The main focus of this commit is to streamline the configuration of benchmarks, making it easier to adjust settings for different benchmarks. It introduces a new BenchTxConfig struct for defining the benchmark configuration and uses it to replace the previous use of environment variables. This commit also modifies various files to match the new configuration method.

popcnt-subodhi added 3 commits April 14, 2024 05:10
The tx_exec_benchmark function has been moved from the `tx` module to a new `tx_exec` module. This included updating import paths in both the function's definition and where it is used, in `bench_tx_exec.rs` and `bench_tx_exec_blk.rs`. The commit improves the organization of the codebase by placing each major functionality in its own module.
The benchmark files `bench_tx.rs` and `bench_tx_query.rs` have been deleted as part of code cleanup. This removal is reflected in the project configuration file, `Cargo.toml` as well, thereby ensuring that these benchmarks are no longer part of the build process.

TODO: need new one
This commit refactors the configuration of the benchmarking function, moving the setup code into a new `config.rs` file. The main focus of this commit is to streamline the configuration of benchmarks, making it easier to adjust settings for different benchmarks. It introduces a new `BenchTxConfig` struct for defining the benchmark configuration and uses it to replace the previous use of environment variables. This commit also modifies various files to match the new configuration method.
Copy link

vercel bot commented Apr 15, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2024 11:36am

@popcnt1 popcnt1 marked this pull request as ready for review April 15, 2024 11:36
@popcnt1 popcnt1 marked this pull request as draft April 15, 2024 11:37
@popcnt1 popcnt1 marked this pull request as ready for review April 15, 2024 12:03
@popcnt1 popcnt1 merged commit a98bdcb into rooch-network:main Apr 15, 2024
5 of 6 checks passed
@popcnt1 popcnt1 deleted the ci.bencharg branch April 15, 2024 12:05
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.

1 participant