Compare commits
2 commits
a024240e5a
...
591e2d37b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
591e2d37b4 | ||
|
|
52f1dbe7a2 |
3 changed files with 11 additions and 2 deletions
11
README.md
11
README.md
|
|
@ -15,5 +15,14 @@ message size.
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```sh
|
```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.
|
||||||
|
|
||||||
|

|
||||||
|
|
|
||||||
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
|
|
@ -7,7 +7,7 @@ use std::{
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
|
|
||||||
const DURATION_MS: u64 = 5000;
|
const DURATION_MS: u64 = 1000;
|
||||||
const BIND_ADDR: &str = "127.0.0.1:7000";
|
const BIND_ADDR: &str = "127.0.0.1:7000";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue