aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-proto/benches
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade rand crates to 0.10.Wesley Aptekar-Cassels2026-05-121-1/+1
| | | | | | | | | | | When the circ-padding feature is enabled, we use maybenot, which does not yet support rand 0.10. In the meantime, enabling this feature pulls in rand 0.9. This is not ideal, but should be okay as a temporary situation. This also replaces the use of ReseedingRng (which was removed in 0.10) with the reseeding_rng crate. This is somewhat less performant, but it should be okay.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-078-19/+19
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* proto: Let benchmarks build correctly on non-intelNick Mathewson2025-06-098-16/+48
| | | | | | | (criterion-cycles-per-byte, though quite helpful, doesn't work on non-intel CPUs) Closes #2029.
* proto: fix bench featuresLionel Goffaux2025-05-276-180/+186
|
* proto: remove bench pub wrappersLionel Goffaux2025-05-228-124/+147
|
* proto: use consts for bench throuputsLionel Goffaux2025-05-148-16/+19
|
* proto: fix doc mismatch in benchmarksLionel Goffaux2025-05-142-2/+2
|
* proto: fix doc typosLionel Goffaux2025-05-146-7/+7
|
* proto: change bench measurementLionel Goffaux2025-05-139-190/+83
|
* proto: use of Aes{128,256}{Dec,Enc} in the benchmarksLionel Goffaux2025-05-086-24/+24
|
* proto: fix typo s(t)ateLionel Goffaux2025-05-085-12/+12
|
* proto: extend benchmarksLionel Goffaux2025-05-0810-187/+667
|
* proto, cell: Remove RelayCellFormatTrait.Nick Mathewson2025-05-064-34/+25
| | | | | | | | | | | | | | | | The purpose of the trait was to parameterize the tor1 cell crypto on the different possible relay cell layouts. It made sense to have this trait when we thought we would implement the new cell layout for prop340 (packed-and-fragmented) well before we implemented CGO. But it now appears all but certain that CGO will land long before we make any more headway on prop340. Therefore, it doesn't make sense to carry the ability to customize `tor1` for other relay cell layouts. Removing this trait saves a fair bit of complexity.
* Emit SendmeTag directly from cell crypto.Nick Mathewson2025-05-062-9/+9
| | | | | | | | | | | | | | | | | | | | This changes the code to copy a SendmeTag rather than returning a slice. This isn't actually a big change: sending a slice already required 16 bytes (on 64-bit platforms), so sending a SendmeTag around isn't a big deal. We rely extensively on the compiler's ability to optimize away all the checking in code like this: ``` let slice: &[u8]; let a: [u8;N] = slice[0..N].try_into().expect("Nope"); ``` I've spot-checked it somewhat with "cargo-show-asm", but it could use more thorough checking. Closes #1956.
* squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-181-3/+2
| | | | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()` (I missed these cases because they were from prelude::*)
* squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-183-5/+5
| | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()`
* tor-proto: change the case of the macrosLionel Goffaux2024-11-082-6/+6
|
* tor-proto: put every bench_utils mod behind the bench featureLionel Goffaux2024-11-061-1/+1
|
* tor-proto: add macro for encryption/decryption bench setupLionel Goffaux2024-11-062-96/+47
|
* tor-proto: use as_nanos for CpuTimeLionel Goffaux2024-11-061-1/+5
|
* tor-proto: rename CPUTime to CpuTimeLionel Goffaux2024-11-065-16/+15
|
* tor-proto: Add benchmarks for cell encryption and decryptionLionel Goffaux2024-11-045-0/+489