MCPcopy Create free account
hub / github.com/evilsocket/cake / hello_roundtrip

Function hello_roundtrip

cake-core/benches/bench_protocol.rs:60–65  ·  view source on GitHub ↗
(bencher: divan::Bencher)

Source from the content-addressed store, hash-verified

58
59#[divan::bench]
60fn hello_roundtrip(bencher: divan::Bencher) {
61 bencher.bench_local(|| {
62 let bytes = Message::Hello.to_bytes().unwrap();
63 Message::from_bytes(&bytes).unwrap()
64 });
65}
66
67#[divan::bench]
68fn worker_info_roundtrip(bencher: divan::Bencher) {

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.80

Tested by

no test coverage detected