1
1
# Benchmarks:
2
2
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.
4
4
5
5
Some example performance measurements:
6
6
7
7
```
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
10
10
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
13
13
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
16
16
17
17
Leopard Encoder(2.56 MB in 1000 pieces, 200 losses): Input=1942.34 MB/s, Output=388.467 MB/s
18
18
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
41
41
```
42
42
For 64KB data chunks:
43
43
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
+
44
47
CM256 Encoder: 64000 bytes k = 128 m = 128 : 82194.7 usec, 99.6658 MBps
45
48
CM256 Decoder: 64000 bytes k = 128 m = 128 : 78279.5 usec, 104.651 MBps
46
49
@@ -56,12 +59,12 @@ FEC-AL Decoder(8.192 MB in 128 pieces, 128 losses): Input=121.093 MB/s, Output=1
56
59
57
60
For 128 data pieces of input and 128 data pieces of redundancy:
58
61
59
- + Fastest to encode: Leopard (1.26 GB/s)
62
+ + Fastest to encode: Leopard (1.96 GB/s)
60
63
+ Distant second-place: WH256 (660 MB/s), FEC-AL (515 MB/s)
61
64
+ Slowest encoders: Longhair, CM256
62
65
63
66
+ Fastest to decode: WH256 (830 MB/s)
64
- + Distant second-place: Leopard (480 MB/s)
67
+ + Distant second-place: Leopard (600 MB/s)
65
68
+ Slowest decoders: FEC-AL, CM256, Longhair
66
69
67
70
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
136
139
137
140
##### Leopard-RS * new* : O(K Log M) FFT MDS Reed-Solomon codec
138
141
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.
141
144
This uses a recent result from 2014 introducing a novel polynomial basis permitting FFT over fast Galois fields.
142
145
This is an MDS Reed-Solomon similar to Jerasure, Zfec, ISA-L, etc, but much faster.
143
146
It requires SSSE3 or newer Intel instruction sets for this speed. Otherwise it runs much slower.
0 commit comments