rename criterion-demo and add cucumber-demo
Cargo Check, Format, Fix and Test / cargo CI (push) Successful in 1m36s Details

This commit is contained in:
Christoph J. Scherr 2024-01-12 13:35:37 +01:00
parent 7098d2f795
commit c5498b5b12
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
7 changed files with 36 additions and 19 deletions

18
Cargo.lock generated
View File

@ -176,6 +176,13 @@ dependencies = [
"walkdir",
]
[[package]]
name = "criterion-demo"
version = "0.1.0"
dependencies = [
"criterion",
]
[[package]]
name = "criterion-plot"
version = "0.5.0"
@ -186,13 +193,6 @@ dependencies = [
"itertools",
]
[[package]]
name = "criterion_ex"
version = "0.1.0"
dependencies = [
"criterion",
]
[[package]]
name = "crossbeam-deque"
version = "0.8.5"
@ -218,6 +218,10 @@ version = "0.8.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
[[package]]
name = "cucumber-demo"
version = "0.1.0"
[[package]]
name = "either"
version = "1.9.0"

View File

@ -1,17 +1,19 @@
[workspace]
members = [
".",
"members/criterion_ex",
"members/revsqrt",
"members/serde-json-demo",
"members/slog-demo",
".",
"members/criterion-demo",
"members/cucumber-demo",
"members/revsqrt",
"members/serde-json-demo",
"members/slog-demo",
]
default-members = [
".",
"members/criterion_ex",
"members/revsqrt",
"members/serde-json-demo",
"members/slog-demo",
".",
"members/criterion-demo",
"members/revsqrt",
"members/serde-json-demo",
"members/slog-demo",
"members/cucumber-demo",
]
[package]

View File

@ -1,5 +1,5 @@
[package]
name = "criterion_ex"
name = "criterion-demo"
version = "0.1.0"
edition = "2021"

View File

@ -1,5 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use criterion_ex::fibonacci;
use criterion_demo::fibonacci;
pub fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20))));

View File

@ -0,0 +1,8 @@
[package]
name = "cucumber-demo"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}