rename criterion-demo and add cucumber-demo
Cargo Check, Format, Fix and Test / cargo CI (push) Successful in 1m36s
Details
Cargo Check, Format, Fix and Test / cargo CI (push) Successful in 1m36s
Details
This commit is contained in:
parent
7098d2f795
commit
c5498b5b12
|
@ -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"
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
[workspace]
|
||||
members = [
|
||||
".",
|
||||
"members/criterion_ex",
|
||||
"members/criterion-demo",
|
||||
"members/cucumber-demo",
|
||||
"members/revsqrt",
|
||||
"members/serde-json-demo",
|
||||
"members/slog-demo",
|
||||
]
|
||||
default-members = [
|
||||
".",
|
||||
"members/criterion_ex",
|
||||
"members/criterion-demo",
|
||||
"members/revsqrt",
|
||||
"members/serde-json-demo",
|
||||
"members/slog-demo",
|
||||
"members/cucumber-demo",
|
||||
]
|
||||
|
||||
[package]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "criterion_ex"
|
||||
name = "criterion-demo"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
|
@ -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))));
|
|
@ -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]
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
Loading…
Reference in New Issue