Skip to content

Commit 237dbd1

Browse files
committed
Use words instead of numbers
1 parent c6fba03 commit 237dbd1

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/crypto/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ sha2 = "0.9"
3333
base64 = "0.13.0"
3434
hex = "0.4"
3535
hex-literal = "0.3.1"
36+
english-numbers = "0.3"
3637
elliptic-curve = "0.8.4"
3738

3839
[[bench]]

packages/crypto/benches/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use criterion::{criterion_group, criterion_main, Criterion, PlottingBackend};
22
use std::time::Duration;
33

4+
use english_numbers::convert_no_fmt;
45
use hex_literal::hex;
56
use serde::Deserialize;
67

@@ -121,10 +122,7 @@ fn bench_crypto(c: &mut Criterion) {
121122

122123
for n in (1..=min(messages.len(), 10)).step_by(2) {
123124
group.bench_function(
124-
format!(
125-
"ed25519_batch_verify_{}",
126-
n
127-
),
125+
format!("ed25519_batch_verify_{}", convert_no_fmt(n as i64)),
128126
|b| {
129127
b.iter(|| {
130128
assert!(ed25519_batch_verify(

0 commit comments

Comments
 (0)