Please see README.md


Keywords
benchmark, library, mit, test, GolangReedSolomon, Klaus Post, JavaReedSolomon, Backblaze, Backblaze blog, https://github.com/NicolasT/reedsolomon, Backblaze Open Sources Reed-Solomon Erasure Coding Source Code, go-erasure, Screaming Fast Galois Field Arithmetic, haskell, reed-solomon, simd, storage
License
MIT
Install
cabal install reedsolomon-0.0.4.3

Documentation

Reed-Solomon

Travis CI Circle CI Appveyor

Reed-Solomon Erasure Coding in Haskell, with speeds exceeding multiple GB/s/cpu core implemented in pure Haskell (and some SIMD C/assembler).

This is a Haskell port of the GolangReedSolomon library released by Klaus Post, wich is a port of the JavaReedSolomon library released by Backblaze, with some additional optimizations.

For an introduction on erasure coding, see the post on the Backblaze blog.

Package home: https://github.com/NicolasT/reedsolomon

Performance

Performance depends mainly on the number of parity shards. In rough terms, doubling the number of parity shards will double the encoding time.

Here are the throughput numbers with some different selections of data and parity shards. For reference each shard is 1MB random data, and 1 CPU core is used for encoding.

Data Parity Parity SSSE3 MB/s AVX2 MB/s
5 2 40% 3641,66 3987,24
10 2 20% 3951,01 4444,44
10 4 40% 1821,16 1927,90
50 20 40% 398,09 431,78

Example of performance on Intel(R) Core(TM) i7-4600U CPU @ 3.30GHz - 2 physical cores, 4 logical cores (note: /proc/cpuinfo mentions 2.10GHz only). The example uses 10 blocks with 16MB data each and 4 parity blocks.

Threads SSSE3 MB/s AVX2 MB/s Speed
1 1551,89 1588,88 100%

Links

License

This code, as the original GolangReedSolomon and JavaReedSolomon is published under an MIT license. See LICENSE file for more information.