Compare commits

...

2 commits

Author SHA1 Message Date
Brent Schroeter
591e2d37b4 update documentation based on test results 2026-03-13 22:46:41 +00:00
Brent Schroeter
52f1dbe7a2 reduce test duration from 5 seconds to 1 2026-03-13 22:46:01 +00:00
3 changed files with 11 additions and 2 deletions

View file

@ -15,5 +15,14 @@ message size.
## Usage
```sh
cargo run <message size in bytes>
cargo run --release <message size in bytes>
```
## Results
A message size of 1024 bytes can be sufficient to trigger fragmentation when
running an optimized build. Results from debug builds are hit-or-miss depending
on the host system: they may have no issues with fragmentation regardless of
message size, or they may encounter issues at closer to 4096 bytes.
![Terminal screenshot showing results of running script with 512 and 1024 byte messages. The first run has no errors, while the second one displays two "out of order" warnings.](./screenshot.png)

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -7,7 +7,7 @@ use std::{
time::{Duration, Instant},
};
const DURATION_MS: u64 = 5000;
const DURATION_MS: u64 = 1000;
const BIND_ADDR: &str = "127.0.0.1:7000";
fn main() {