MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / bench_bitcode_serialize

Function bench_bitcode_serialize

src/benches_borrowed.rs:114–121  ·  view source on GitHub ↗
(b: &mut Bencher)

Source from the content-addressed store, hash-verified

112#[cfg(feature = "serde")]
113#[bench]
114fn bench_bitcode_serialize(b: &mut Bencher) {
115 let data = bench_data();
116 let data = bench_data2(&data);
117
118 b.iter(|| {
119 black_box(crate::serialize(black_box(&data)).unwrap());
120 })
121}
122
123#[cfg(feature = "serde")]
124#[bench]

Callers

nothing calls this directly

Calls 3

bench_data2Function · 0.85
serializeFunction · 0.85
bench_dataFunction · 0.70

Tested by

no test coverage detected