Add bandwidth benchmarking and reporting for BAQ bulk operations

This commit is contained in:
2026-05-04 23:55:54 +08:00
parent 8e5c40bb22
commit 56f8fbb701
2 changed files with 106 additions and 10 deletions
+6 -6
View File
@@ -535,12 +535,12 @@ TEST_CASE("comprehensive: all types combined stress test") {
// =============================================================================
TEST_CASE("user-provided buffer: zero-allocation path") {
AllPkt x{
.u8 = 0x12,
.s32 = -1,
.f64 = 3.14,
.inner = {.a = 100, .b = 0.5},
};
AllPkt x{};
x.u8 = 0x12;
x.s32 = -1;
x.f64 = 3.14;
x.inner = {.a = 100, .b = 0.5};
std::vector<std::uint8_t> buf(bitserial::byte_size_v<AllPkt>);
bitserial::to_bytes(x, std::span<std::uint8_t>(buf));