Skip to content

Commit 47444a9

Browse files
authored
Update Benchmarks.md
1 parent 7082e5b commit 47444a9

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Benchmarks.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Benchmarks:
22

3-
On my (few year old) laptop:
3+
On my (few year old) laptop using AVX2 instruction set. I'm not being very rigorous here. The point is that it's really fast.
44

55
Some example performance measurements:
66

77
```
8-
Leopard Encoder(0.256 MB in 100 pieces, 10 losses): Input=4990.25 MB/s, Output=499.025 MB/s
9-
Leopard Decoder(0.256 MB in 100 pieces, 10 losses): Input=1407.37 MB/s, Output=140.737 MB/s
8+
Leopard Encoder(0.256 MB in 100 pieces, 10 losses): Input=5333.33 MB/s, Output=533.333 MB/s
9+
Leopard Decoder(0.256 MB in 100 pieces, 10 losses): Input=1695.36 MB/s, Output=169.536 MB/s
1010
11-
Leopard Encoder(0.256 MB in 100 pieces, 20 losses): Input=3560.5 MB/s, Output=712.1 MB/s
12-
Leopard Decoder(0.256 MB in 100 pieces, 20 losses): Input=632.88 MB/s, Output=126.576 MB/s
11+
Leopard Encoder(0.256 MB in 100 pieces, 20 losses): Input=3878.79 MB/s, Output=775.758 MB/s
12+
Leopard Decoder(0.256 MB in 100 pieces, 20 losses): Input=833.876 MB/s, Output=166.775 MB/s
1313
14-
Leopard Encoder(8.192 MB in 128 pieces, 128 losses): Input=1266.13 MB/s, Output=1266.13 MB/s
15-
Leopard Decoder(8.192 MB in 128 pieces, 128 losses): Input=482.243 MB/s, Output=482.243 MB/s
14+
Leopard Encoder(8.192 MB in 128 pieces, 128 losses): Input=1964.98 MB/s, Output=1964.98 MB/s
15+
Leopard Decoder(8.192 MB in 128 pieces, 128 losses): Input=600.542 MB/s, Output=600.542 MB/s
1616
1717
Leopard Encoder(2.56 MB in 1000 pieces, 200 losses): Input=1942.34 MB/s, Output=388.467 MB/s
1818
Leopard Decoder(2.56 MB in 1000 pieces, 200 losses): Input=367.109 MB/s, Output=73.4219 MB/s
@@ -41,6 +41,9 @@ The results are all from libraries I've written over the past few years. They a
4141
```
4242
For 64KB data chunks:
4343
44+
Leopard Encoder(8.192 MB in 128 pieces, 128 losses): Input=1964.98 MB/s, Output=1964.98 MB/s
45+
Leopard Decoder(8.192 MB in 128 pieces, 128 losses): Input=600.542 MB/s, Output=600.542 MB/s
46+
4447
CM256 Encoder: 64000 bytes k = 128 m = 128 : 82194.7 usec, 99.6658 MBps
4548
CM256 Decoder: 64000 bytes k = 128 m = 128 : 78279.5 usec, 104.651 MBps
4649
@@ -56,12 +59,12 @@ FEC-AL Decoder(8.192 MB in 128 pieces, 128 losses): Input=121.093 MB/s, Output=1
5659

5760
For 128 data pieces of input and 128 data pieces of redundancy:
5861

59-
+ Fastest to encode: Leopard (1.26 GB/s)
62+
+ Fastest to encode: Leopard (1.96 GB/s)
6063
+ Distant second-place: WH256 (660 MB/s), FEC-AL (515 MB/s)
6164
+ Slowest encoders: Longhair, CM256
6265

6366
+ Fastest to decode: WH256 (830 MB/s)
64-
+ Distant second-place: Leopard (480 MB/s)
67+
+ Distant second-place: Leopard (600 MB/s)
6568
+ Slowest decoders: FEC-AL, CM256, Longhair
6669

6770
There are a lot of variables that affect when each of these libraries should be used.
@@ -136,8 +139,8 @@ http://github.com/catid/siamese
136139

137140
##### Leopard-RS *new*: O(K Log M) FFT MDS Reed-Solomon codec
138141

139-
Encodes at 1.2 GB/s, and decodes at 480 MB/s for this case.
140-
12x faster than existing MDS approaches to encode, and almost 5x faster to decode.
142+
Encodes at 2 GB/s, and decodes at 600 MB/s for this case.
143+
20x faster than existing MDS approaches to encode, and 6x faster to decode.
141144
This uses a recent result from 2014 introducing a novel polynomial basis permitting FFT over fast Galois fields.
142145
This is an MDS Reed-Solomon similar to Jerasure, Zfec, ISA-L, etc, but much faster.
143146
It requires SSSE3 or newer Intel instruction sets for this speed. Otherwise it runs much slower.

0 commit comments

Comments
 (0)