mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
Run `cargo bench -p affine_media_capture`
```
test result: ok. 0 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running benches/mix_audio_samples.rs (target/release/deps/mix_audio_samples-ffbc55dcf90d3468)
audio mix/simd time: [98.380 ns 99.339 ns 100.57 ns]
change: [−19.199% −16.928% −14.569%] (p = 0.00 < 0.05)
Performance has improved.
Found 12 outliers among 100 measurements (12.00%)
6 (6.00%) high mild
6 (6.00%) high severe
audio mix/scalar time: [123.99 ns 126.11 ns 128.71 ns]
change: [+0.2703% +1.2739% +2.5727%] (p = 0.02 < 0.05)
Change within noise threshold.
Found 11 outliers among 100 measurements (11.00%)
4 (4.00%) high mild
7 (7.00%) high severe
```
36 lines
1.0 KiB
TOML
36 lines
1.0 KiB
TOML
[package]
|
|
edition = "2021"
|
|
name = "affine_media_capture"
|
|
version = "0.0.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "mix_audio_samples"
|
|
|
|
[dependencies]
|
|
napi = { workspace = true, features = ["napi4"] }
|
|
napi-derive = { workspace = true, features = ["type-def"] }
|
|
rubato = { workspace = true }
|
|
symphonia = { workspace = true, features = ["all", "opt-simd"] }
|
|
thiserror = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
block2 = { workspace = true }
|
|
core-foundation = { workspace = true, features = ["with-uuid"] }
|
|
coreaudio-rs = { workspace = true }
|
|
dispatch2 = { workspace = true }
|
|
libc = { workspace = true }
|
|
objc2 = { workspace = true }
|
|
objc2-foundation = { workspace = true }
|
|
screencapturekit = { workspace = true }
|
|
uuid = { workspace = true, features = ["v4"] }
|
|
|
|
[dev-dependencies]
|
|
criterion2 = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
napi-build = { workspace = true }
|