Rust implementation of RaptorQ (RFC6330)
Go to file
Anders Martinsson 04786d26fd Add operation vectors for better encoding performance
Using stored operation vectors when generating intermediate symbols make
encoding around three times faster (depends on block size).

Signed-off-by: Anders Martinsson <anders.martinsson@intinor.se>
2020-01-26 10:15:56 -08:00
benches Add operation vectors for better encoding performance 2020-01-26 10:15:56 -08:00
examples feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
python feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
src Add operation vectors for better encoding performance 2020-01-26 10:15:56 -08:00
.gitignore Exclude IntelliJ files from Git 2019-01-21 17:07:07 -08:00
.travis.yml feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
Cargo.toml Version 1.1.0 2020-01-19 11:10:46 -08:00
LICENSE Initial commit 2019-01-21 16:58:13 -08:00
Makefile Enable Clippy checks 2019-12-25 12:02:54 -08:00
README.md Update benchmarks with 1.1.0 results 2020-01-19 11:52:35 -08:00
RFC6330_ERRATA.md Remove unnecessary counting of values greater than one 2020-01-19 11:08:40 -08:00

raptorq

Build Status Crates Documentation dependency status

Rust implementation of RaptorQ (RFC6330)

Recovery properties: Reconstruction probability after receiving K + h packets = 1 - 1/256^(h + 1). Where K is the number of packets in the original message, and h is the number of additional packets received. See "RaptorQ Technical Overview" by Qualcomm

Examples

See the examples/ directory for usage.

Benchmarks

The following were run on an Intel Core i5-6600K @ 3.50GHz

Symbol size: 1280 bytes
symbol count = 10, encoded 127 MB in 0.537secs, throughput: 1906.8Mbit/s
symbol count = 100, encoded 127 MB in 0.590secs, throughput: 1734.6Mbit/s
symbol count = 250, encoded 127 MB in 0.572secs, throughput: 1788.4Mbit/s
symbol count = 500, encoded 127 MB in 0.554secs, throughput: 1842.1Mbit/s
symbol count = 1000, encoded 126 MB in 0.583secs, throughput: 1742.1Mbit/s
symbol count = 2000, encoded 126 MB in 0.657secs, throughput: 1545.9Mbit/s
symbol count = 5000, encoded 122 MB in 0.725secs, throughput: 1347.0Mbit/s
symbol count = 10000, encoded 122 MB in 0.915secs, throughput: 1067.3Mbit/s
symbol count = 20000, encoded 122 MB in 1.335secs, throughput: 731.5Mbit/s
symbol count = 50000, encoded 122 MB in 1.990secs, throughput: 490.7Mbit/s

Symbol size: 1280 bytes
symbol count = 10, decoded 127 MB in 0.728secs using 0.0% overhead, throughput: 1406.5Mbit/s
symbol count = 100, decoded 127 MB in 0.699secs using 0.0% overhead, throughput: 1464.1Mbit/s
symbol count = 250, decoded 127 MB in 0.639secs using 0.0% overhead, throughput: 1600.9Mbit/s
symbol count = 500, decoded 127 MB in 0.643secs using 0.0% overhead, throughput: 1587.1Mbit/s
symbol count = 1000, decoded 126 MB in 0.674secs using 0.0% overhead, throughput: 1506.9Mbit/s
symbol count = 2000, decoded 126 MB in 0.749secs using 0.0% overhead, throughput: 1356.0Mbit/s
symbol count = 5000, decoded 122 MB in 0.877secs using 0.0% overhead, throughput: 1113.5Mbit/s
symbol count = 10000, decoded 122 MB in 1.182secs using 0.0% overhead, throughput: 826.2Mbit/s
symbol count = 20000, decoded 122 MB in 1.528secs using 0.0% overhead, throughput: 639.1Mbit/s
symbol count = 50000, decoded 122 MB in 2.596secs using 0.0% overhead, throughput: 376.2Mbit/s

symbol count = 10, decoded 127 MB in 0.725secs using 5.0% overhead, throughput: 1412.3Mbit/s
symbol count = 100, decoded 127 MB in 0.702secs using 5.0% overhead, throughput: 1457.9Mbit/s
symbol count = 250, decoded 127 MB in 0.626secs using 5.0% overhead, throughput: 1634.1Mbit/s
symbol count = 500, decoded 127 MB in 0.620secs using 5.0% overhead, throughput: 1646.0Mbit/s
symbol count = 1000, decoded 126 MB in 0.634secs using 5.0% overhead, throughput: 1601.9Mbit/s
symbol count = 2000, decoded 126 MB in 0.685secs using 5.0% overhead, throughput: 1482.7Mbit/s
symbol count = 5000, decoded 122 MB in 0.830secs using 5.0% overhead, throughput: 1176.6Mbit/s
symbol count = 10000, decoded 122 MB in 1.059secs using 5.0% overhead, throughput: 922.2Mbit/s
symbol count = 20000, decoded 122 MB in 1.370secs using 5.0% overhead, throughput: 712.8Mbit/s
symbol count = 50000, decoded 122 MB in 2.348secs using 5.0% overhead, throughput: 415.9Mbit/s

Public API

Note that the additional classes exported by the benchmarking feature flag are not considered part of this crate's public API. Breaking changes to those classes may occur without warning. The flag is only provided so that internal classes can be used in this crate's benchmarks.

License

Licensed under

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.