Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marvin-hansen/zenoh-bench
Simple benchmark of zenoh- with and without low latency mode
https://github.com/marvin-hansen/zenoh-bench
Last synced: 24 days ago
JSON representation
Simple benchmark of zenoh- with and without low latency mode
- Host: GitHub
- URL: https://github.com/marvin-hansen/zenoh-bench
- Owner: marvin-hansen
- License: mit
- Created: 2023-11-28T04:53:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T05:35:44.000Z (about 1 year ago)
- Last Synced: 2024-10-31T01:09:35.219Z (2 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zenoh-bench
## Overview
simple benchmark to investigate low latency mode.
## Install & run
1) clone repo
2) cd zenoh-bench
3) run sub first: ```cargo run --bin sub```
4) run pub next: ```cargo run --bin pub```
5) When pub finishes, est. throughput will be printed outFiles:
* Configuration: [src/lib.rs](src/lib.rs)
* Publisher [src/bin/pub](src/bin/pub/main.rs)
* Subscriber: [src/bin/sub](src/bin/sub/main.rs)Both, pub and sub share the exact same configuration.
## Observations
General:
* Default config gives good performance
* Release build is nearly twice as fast as debug build due to aggressive optimization. See cargo.tomlLow latency mode:
* Best throughput when enabled
* With publisher in low latency mode, throughput drops in half
* With pub & sub in low latency mode, throughput drops fivefold (from 500k to ~100k).## Sample measurement
System:
* Apple Macbook, M1
* Mac OS Sonoma 14.1
* rustc 1.74.0 (79e9716c9 2023-11-13)
* zenoh v0.10.0-rcRelease mode with low latency DISABLED:
```
Max Messages: 1000000 (1 Million)
Elapsed time: 2.338041208s
Throughput: 500000.00 msg/s
```Release mode with low latency PUB & SUB ENABLED:
```
Max Messages: 1000000 (1 Million)
Elapsed time: 9.321751834s
Throughput: 111111.11 msg/s
```## Comparison
| | Low Lat ON | Low Lat OFF | Change | Percent |
|------------|------------|-------------|---------|---------|
| Time (Sec) | 9.32 | 2.33 | -6.9 | -300% |
| msg/s | 111 111 | 500 000 | -388889 | -77.8% |