-
Notifications
You must be signed in to change notification settings - Fork 346
Chore/bench touch unused deps #1021
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
base: master
Are you sure you want to change the base?
Chore/bench touch unused deps #1021
Conversation
cookingypq
commented
Aug 26, 2025
- Commit: bench: add minimal bench to exercise ark-ff/ec/serialize deps
- Branch: chore/bench-touch-unused-deps
- Change 'curves repository' to 'curves directory' with relative links - Update minimum Rust version from 1.51+ to 1.56+ to match CHANGELOG
|
||
## Build guide | ||
|
||
The library compiles on the `stable` toolchain of the Rust compiler (v 1.51+). To install the latest version of Rust, first install `rustup` by following the instructions [here](https://rustup.rs/), or via your platform's package manager. Once `rustup` is installed, install the Rust toolchain by invoking: | ||
The library compiles on the `stable` toolchain of the Rust compiler (v 1.56+). To install the latest version of Rust, first install `rustup` by following the instructions [here](https://rustup.rs/), or via your platform's package manager. Once `rustup` is installed, install the Rust toolchain by invoking: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be updated; can you check which version is the minimal one required?
@@ -1,4 +1,4 @@ | |||
# test-templates | |||
|
|||
**Warning!!!** This package does not implement any tests, but exports templates and macros for testing. | |||
In order to test arkworks, please run `cargo test` inside [algebra](https://github.com/arkworks-rs/algebra). | |||
In order to test arkworks, please run `cargo test` inside the algebra directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to test arkworks, please run `cargo test` inside the algebra directory. | |
In order to test arkworks, please run `cargo test` inside the [`algebra`](../algebra) directory. |
@@ -1,4 +1,4 @@ | |||
# bench-templates | |||
|
|||
**Warning!!!** This package does not implement any benchmarks, but exports templates and macros for benchmarking. | |||
In order to benchmark arkworks, please run `cargo bench` inside [ark-curves](https://github.com/arkworks-rs/algebra/tree/master/curves). | |||
In order to benchmark arkworks, please run `cargo bench` inside the curves directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to benchmark arkworks, please run `cargo bench` inside the curves directory. | |
In order to benchmark arkworks, please run `cargo bench` inside the [`curves`](../curves) directory. |
fn bench_deps(c: &mut Criterion) { | ||
let mut g = c.benchmark_group("deps_touch"); | ||
let a: ark_ff::BigInt<1> = ark_ff::BigInt::from(123u64); | ||
let _ = a; | ||
let _ = ark_serialize::Compress::Yes; | ||
g.bench_function("noop", |b| b.iter(|| ())); | ||
g.finish(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this?