Add comparative benchmarks with Taffy 0.3 (#572)
1[package]
2name = "taffy_benchmarks"
3version = "0.1.0"
4authors = [
5 "Alice Cecile <alice.i.cecile@gmail.com>",
6 "Johnathan Kelley <jkelleyrtp@gmail.com>",
7]
8edition = "2021"
9description = "Benchmarks for the taffy crate"
10repository = "https://github.com/DioxusLabs/taffy"
11keywords = ["cross-platform", "layout", "benchmarks"]
12categories = ["gui", "benchmarks"]
13license = "MIT"
14
15[dependencies]
16criterion = "0.5"
17rand = { version = "0.8.5" }
18rand_chacha = "0.3.1"
19taffy = { path = ".." }
20taffy_03 = { package = "taffy", version = "0.3", optional = true }
21yoga = { version = "0.4.0", optional = true }
22ordered-float = { version = "3.4.0", optional = true }
23slotmap = { version = "1.0.6", optional = true }
24
25[features]
26yoga = ["dep:yoga", "dep:slotmap", "dep:ordered-float"]
27yoga-super-deep = ["yoga"]
28taffy03 = ["dep:taffy_03"]
29small = []
30large = []
31
32[[bench]]
33name = "tree_creation"
34path = "benches/tree_creation.rs"
35harness = false
36
37[[bench]]
38name = "flexbox"
39path = "benches/flexbox.rs"
40harness = false
41
42[[bench]]
43name = "grid"
44path = "benches/grid.rs"
45harness = false