mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-02 14:16:03 -05:00
build releases with mimalloc
This commit is contained in:
@@ -27,7 +27,9 @@ itertools = { workspace = true }
|
||||
jiff = { workspace = true }
|
||||
libc = "0.2"
|
||||
nix = { workspace = true, features = ["dir", "feature", "fs", "mman"] }
|
||||
num-rational = { version = "0.4.0", default-features = false, features = ["std"] }
|
||||
num-rational = { version = "0.4.0", default-features = false, features = [
|
||||
"std",
|
||||
] }
|
||||
pretty-hex = { workspace = true }
|
||||
protobuf = "3.0"
|
||||
ring = { workspace = true }
|
||||
|
||||
@@ -656,6 +656,7 @@ mod bench {
|
||||
/// Benchmarks the decoder, which is performance-critical for .mp4 serving.
|
||||
#[bench]
|
||||
fn bench_decoder(b: &mut test::Bencher) {
|
||||
crate::testutil::init();
|
||||
let data = include_bytes!("testdata/video_sample_index.bin");
|
||||
b.bytes = data.len() as u64;
|
||||
b.iter(|| {
|
||||
|
||||
@@ -37,6 +37,7 @@ pub const TEST_VIDEO_SAMPLE_ENTRY_DATA: &[u8] =
|
||||
/// * use a fast but insecure password hashing format.
|
||||
pub fn init() {
|
||||
INIT.call_once(|| {
|
||||
base::ensure_malloc_used();
|
||||
base::tracing_setup::install_for_tests();
|
||||
base::time::testutil::init_zone();
|
||||
crate::auth::set_test_config();
|
||||
|
||||
Reference in New Issue
Block a user