Skip to content

Commit 829681d

Browse files
committed
bump dependency version to latest git commit
Now criterion-cycles-per-byte supports capturing cpu cycles on aarch64 Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
1 parent 26896e1 commit 829681d

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ hex = "=0.4.3"
2525
criterion = "=0.5.1"
2626
test-case = "=3.2.1"
2727

28-
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "loongarch64"))'.dev-dependencies]
29-
criterion-cycles-per-byte = {git = "https://github.com/itzmeanjan/criterion-cycles-per-byte", rev = "2dc25c6"}
28+
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies]
29+
criterion-cycles-per-byte = {git = "https://github.com/itzmeanjan/criterion-cycles-per-byte", rev = "d2f5bf863"}
3030

3131
[lib]
3232
bench = false

benches/keccak.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ use turboshake::keccak;
55
#[cfg(any(
66
target_arch = "x86_64",
77
target_arch = "x86",
8+
target_arch = "aarch64",
89
target_arch = "loongarch64"
910
))]
1011
use criterion_cycles_per_byte::CyclesPerByte;
1112

1213
#[cfg(any(
1314
target_arch = "x86_64",
1415
target_arch = "x86",
16+
target_arch = "aarch64",
1517
target_arch = "loongarch64"
1618
))]
1719
type CriterionHandler = Criterion<CyclesPerByte>;
1820

1921
#[cfg(not(any(
2022
target_arch = "x86_64",
2123
target_arch = "x86",
24+
target_arch = "aarch64",
2225
target_arch = "loongarch64"
2326
)))]
2427
type CriterionHandler = Criterion;
@@ -145,13 +148,15 @@ fn keccak(c: &mut CriterionHandler) {
145148
#[cfg(any(
146149
target_arch = "x86_64",
147150
target_arch = "x86",
151+
target_arch = "aarch64",
148152
target_arch = "loongarch64"
149153
))]
150154
criterion_group!(name = permutation; config = Criterion::default().with_measurement(CyclesPerByte); targets = keccak);
151155

152156
#[cfg(not(any(
153157
target_arch = "x86_64",
154158
target_arch = "x86",
159+
target_arch = "aarch64",
155160
target_arch = "loongarch64"
156161
)))]
157162
criterion_group!(permutation, keccak);

benches/turboshake.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ use turboshake::{TurboShake128, TurboShake256};
55
#[cfg(any(
66
target_arch = "x86_64",
77
target_arch = "x86",
8+
target_arch = "aarch64",
89
target_arch = "loongarch64"
910
))]
1011
use criterion_cycles_per_byte::CyclesPerByte;
1112

1213
#[cfg(any(
1314
target_arch = "x86_64",
1415
target_arch = "x86",
16+
target_arch = "aarch64",
1517
target_arch = "loongarch64"
1618
))]
1719
type CriterionHandler = Criterion<CyclesPerByte>;
1820

1921
#[cfg(not(any(
2022
target_arch = "x86_64",
2123
target_arch = "x86",
24+
target_arch = "aarch64",
2225
target_arch = "loongarch64"
2326
)))]
2427
type CriterionHandler = Criterion;
@@ -138,13 +141,15 @@ fn turboshake256(c: &mut CriterionHandler) {
138141
#[cfg(any(
139142
target_arch = "x86_64",
140143
target_arch = "x86",
144+
target_arch = "aarch64",
141145
target_arch = "loongarch64"
142146
))]
143147
criterion_group!(name = hashing; config = Criterion::default().with_measurement(CyclesPerByte); targets = turboshake128, turboshake256);
144148

145149
#[cfg(not(any(
146150
target_arch = "x86_64",
147151
target_arch = "x86",
152+
target_arch = "aarch64",
148153
target_arch = "loongarch64"
149154
)))]
150155
criterion_group!(hashing, turboshake128, turboshake256);

0 commit comments

Comments
 (0)