Skip to content

Conversation

cookingypq
Copy link

  • 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
@cookingypq cookingypq requested review from a team as code owners August 26, 2025 07:25
@cookingypq cookingypq requested review from Pratyush, mmagician and weikengchen and removed request for a team August 26, 2025 07:25

## 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:
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.

Comment on lines +5 to +12
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();
}
Copy link
Member

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?

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