Skip to content

Commit 747a7e9

Browse files
gearamaheaths
andauthored
Perf test framework (#2522)
* first test in core * some config changes * quick rename * perf tests yaml * update version for package * quick update * dsfsd * add one extra test * cleanup * cleanup * move dep * cargo again * update * Update CONTRIBUTING.md Co-authored-by: Heath Stewart <[email protected]> * pr comments * rustc1.81 * update to 1.81 rustc in contrib --------- Co-authored-by: Heath Stewart <[email protected]>
1 parent f9c5583 commit 747a7e9

File tree

8 files changed

+300
-3
lines changed

8 files changed

+300
-3
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- [Rust toolchain](https://www.rust-lang.org/tools/install)
66

7-
When you run `cargo build`, toolchain version [1.80](https://releases.rs/docs/1.80.0/) and necessary components will be installed automatically.
7+
When you run `cargo build`, toolchain version [1.81](https://releases.rs/docs/1.81.0/) and necessary components will be installed automatically.
88

99
- (Recommended) If you use [Visual Studio Code], install recommended extensions to improve your development experience.
1010

@@ -311,6 +311,13 @@ Once all of the above steps are met, the following process will be followed:
311311
- One exception is when a comment clearly states that the feedback is optional or just a nit
312312
- When in doubt, reach out to the commenter to confirm that they have no concerns with you merging without addressing a comment.
313313

314+
### Performance Testing
315+
316+
Performance testing is supported via [criterion](https://bheisler.github.io/criterion.rs/book/criterion_rs.html)
317+
There are samples of performance tests under `sdk/core/azure_core/benches` folder.
318+
To execute the performance tests in `azure_core` folder you can run `cargo bench` in the `sdk/core/azure_core` folder.
319+
The output of the tests will be presented in the command line as well as saved under the `target/criterion` folder.
320+
314321
## Samples
315322

316323
### Third-party dependencies

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ authors = ["Microsoft"]
2828
edition = "2021"
2929
license = "MIT"
3030
repository = "https://github.com/azure/azure-sdk-for-rust"
31-
rust-version = "1.80"
31+
rust-version = "1.81"
3232

3333
[workspace.dependencies.typespec]
3434
default-features = false
@@ -80,6 +80,7 @@ base64 = "0.22"
8080
bytes = "1.0"
8181
cargo_metadata = "0.18.1"
8282
clap = { version = "4.4.16", features = ["derive"] }
83+
criterion = "0.5.1"
8384
dyn-clone = "1.0"
8485
fe2o3-amqp = { version = "0.12", features = ["native-tls", "tracing", "uuid"] }
8586
fe2o3-amqp-ext = { version = "0.12" }

0 commit comments

Comments
 (0)