mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
c4ed95a7d3
This PR also includes the Criterion benchmark. ## Before this commit > Benchmarking BlockState::to_kind > Benchmarking BlockState::to_kind: Warming up for 3.0000 s Benchmarking BlockState::to_kind: Collecting 100 samples in estimated 20.045 s (273k iterations) Benchmarking BlockState::to_kind: Analyzing > BlockState::to_kind time: [68.925 µs 69.202 µs 69.477 µs] > > Found 5 outliers among 100 measurements (5.00%) > 4 (4.00%) high mild > 1 (1.00%) high severe ## After this commit > Benchmarking BlockState::to_kind > Benchmarking BlockState::to_kind: Warming up for 3.0000 s Benchmarking BlockState::to_kind: Collecting 100 samples in estimated 20.010 s (3.8M iterations) Benchmarking BlockState::to_kind: Analyzing > BlockState::to_kind time: [1.5814 µs 1.5859 µs 1.5912 µs] > change: [-97.692% -97.678% -97.666%] (p = 0.00 < 0.05) > Performance has improved. > Found 4 outliers among 100 measurements (4.00%) > 4 (4.00%) high mild Co-authored-by: Ryan Johnson <ryanj00a@gmail.com>
42 lines
941 B
TOML
42 lines
941 B
TOML
[package]
|
|
name = "valence_protocol"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
build = "build/main.rs"
|
|
|
|
[dependencies]
|
|
aes = { version = "0.7.5", optional = true }
|
|
anyhow = "1.0.66"
|
|
arrayvec = "0.7.2"
|
|
bitfield-struct = "0.1.7"
|
|
byteorder = "1.4.3"
|
|
bytes = "1.2.1"
|
|
cfb8 = { version = "0.7.1", optional = true }
|
|
flate2 = { version = "1.0.24", optional = true }
|
|
serde = { version = "1.0.147", features = ["derive"] }
|
|
serde_json = "1.0.87"
|
|
thiserror = "1.0.37"
|
|
uuid = "1.2.1"
|
|
valence_derive = { version = "0.1.0", path = "../valence_derive" }
|
|
valence_nbt = { version = "0.5.0", path = "../valence_nbt" }
|
|
|
|
[dev-dependencies]
|
|
rand = "0.8.5"
|
|
criterion = "0.4.0"
|
|
|
|
[[bench]]
|
|
name = "benches"
|
|
harness = false
|
|
|
|
[build-dependencies]
|
|
anyhow = "1.0.65"
|
|
heck = "0.4.0"
|
|
proc-macro2 = "1.0.43"
|
|
quote = "1.0.21"
|
|
serde = { version = "1.0.145", features = ["derive"] }
|
|
serde_json = "1.0.85"
|
|
|
|
[features]
|
|
encryption = ["dep:aes", "dep:cfb8"]
|
|
compression = ["dep:flate2"]
|