1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
|
Return-Path: <jgarzik@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id A3AD8282
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 30 Nov 2015 16:53:41 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-io0-f177.google.com (mail-io0-f177.google.com
[209.85.223.177])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9456D110
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 30 Nov 2015 16:53:40 +0000 (UTC)
Received: by ioir85 with SMTP id r85so179759761ioi.1
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 30 Nov 2015 08:53:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:cc:content-type;
bh=xQJdJCZyjHyk7tR3B5niG22t75NkvbnFqLJawqlK/yw=;
b=bNbRcIAn/iN2Uv+3kakg88U0PTcGZguqKCfyLZN7wra//vuRnzR76fNQMJhsyf1lI0
oS9tBuNVYxC8SHNEa5gDE2t1F+wzbVMcONpdvCgctt5YlRD5NEWSksdr1P4ZQsR8iPOV
tjM0pTsOMS8KwVdh3uoyvyWrZheNdGsPh191uDy6AiDE9THdJxSsogTnkKi8KURQZGJa
Qo1P5deORgtJqyIEcVhISKaBluGBKiv+uNskmr5E2wrRXCDAq5X+q5Tf04yMN+B8CUwM
InpMAesWKOkyXhhKR5FfEI4ODvr+qRlgYT5UftVFcwV49qkxkY5KyPFjmCT8MX+Dn4kT
rUcA==
MIME-Version: 1.0
X-Received: by 10.107.185.133 with SMTP id j127mr25665277iof.91.1448902419939;
Mon, 30 Nov 2015 08:53:39 -0800 (PST)
Received: by 10.79.8.198 with HTTP; Mon, 30 Nov 2015 08:53:39 -0800 (PST)
In-Reply-To: <565A1F9F.1090005@gmail.com>
References: <565A1F9F.1090005@gmail.com>
Date: Mon, 30 Nov 2015 11:53:39 -0500
Message-ID: <CADm_WcZMvRa6XF7-8Gmz5KONtex9Jpono=PmKzRxxX_dKB_jEA@mail.gmail.com>
From: Jeff Garzik <jgarzik@gmail.com>
To: Peter Tschipper <peter.tschipper@gmail.com>
Content-Type: multipart/alternative; boundary=94eb2c070a1c0e19c30525c4e29b
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW
autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
smtp1.linux-foundation.org
Cc: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] Test Results for : Datasstream Compression of
Blocks and Tx's
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Development Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Nov 2015 16:53:41 -0000
--94eb2c070a1c0e19c30525c4e29b
Content-Type: text/plain; charset=UTF-8
Thanks for providing an in-depth, data driven analysis.
It is surprising that zlib provides better compression at the high end. I
wonder if that is due to our specific data patterns - many zeroes - which
probably puts us into the zlib dictionary fast path.
On Sat, Nov 28, 2015 at 4:41 PM, Peter Tschipper via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:
> Hi All,
>
> Here are some final results of testing with the reference implementation
> for compressing blocks and transactions. This implementation also
> concatenates blocks and transactions when possible so you'll see data sizes
> in the 1-2MB ranges.
>
> Results below show the time it takes to sync the first part of the
> blockchain, comparing Zlib to the LZOx library. (LZOf was also tried but
> wasn't found to be as good as LZOx). The following shows tests run with
> and without latency. With latency on the network, all compression
> libraries performed much better than without compression.
>
> I don't think it's entirely obvious which is better, Zlib or LZO.
> Although I prefer the higher compression of Zlib, overall I would have to
> give the edge to LZO. With LZO we have the fastest most scalable option
> when at the lowest compression setting which will be a boost in performance
> for users that want peformance over compression, and then at the high end
> LZO provides decent compression which approaches Zlib, (although at a
> higher cost) but good for those that want to save more bandwidth.
>
> Uncompressed 60ms Zlib-1 (60ms) Zlib-6 (60ms) LZOx-1 (60ms) LZOx-999
> (60ms) 219 299 296 294 291 432 568 565 558 548 652 835 836 819 811 866
> 1106 1107 1081 1071 1082 1372 1381 1341 1333 1309 1644 1654 1605 1600 1535
> 1917 1936 1873 1875 1762 2191 2210 2141 2141 1992 2463 2486 2411 2411 2257
> 2748 2780 2694 2697 2627 3034 3076 2970 2983 3226 3416 3397 3266 3302 4010
> 3983 3773 3625 3703 4914 4503 4292 4127 4287 5806 4928 4719 4529 4821 6674
> 5249 5164 4840 5314 7563 5603 5669 5289 6002 8477 6054 6268 5858 6638 9843
> 7085 7278 6868 7679 11338 8215 8433 8044 8795
>
> These results from testing on a highspeed wireless LAN (very small latency)
>
> Results in seconds
>
>
>
>
> Num blocks sync'd Uncompressed Zlib-1 Zlib-6 LZOx-1 LZOx-999 10000 255 232
> 233 231 257 20000 464 414 420 407 453 30000 677 594 611 585 650 40000 887
> 782 795 760 849 50000 1099 961 977 933 1048 60000 1310 1145 1167 1110 1259
> 70000 1512 1330 1362 1291 1470 80000 1714 1519 1552 1469 1679 90000 1917
> 1707 1747 1650 1882 100000 2122 1905 1950 1843 2111 110000 2333 2107 2151
> 2038 2329 120000 2560 2333 2376 2256 2580 130000 2835 2656 2679 2558 2921
> 140000 3274 3259 3161 3051 3466 150000 3662 3793 3547 3440 3919 160000
> 4040 4172 3937 3767 4416 170000 4425 4625 4379 4215 4958 180000 4860 5149
> 4895 4781 5560 190000 5855 6160 5898 5805 6557 200000 7004 7234 7051 6983
> 7770
>
> The following show the compression ratio acheived for various sizes of
> data. Zlib is the clear
> winner for compressibility, with LZOx-999 coming close but at a cost.
>
> range Zlib-1 cmp%
> Zlib-6 cmp% LZOx-1 cmp% LZOx-999 cmp% 0-250b 12.44 12.86 10.79 14.34
> 250-500b 19.33 12.97 10.34 11.11 600-700 16.72 n/a 12.91 17.25 700-800
> 6.37 7.65 4.83 8.07 900-1KB 6.54 6.95 5.64 7.9 1KB-10KB 25.08 25.65 21.21
> 22.65 10KB-100KB 19.77 21.57 14.37 19.02 100KB-200KB 21.49 23.56 15.37
> 21.55 200KB-300KB 23.66 24.18 16.91 22.76 300KB-400KB 23.4 23.7 16.5 21.38
> 400KB-500KB 24.6 24.85 17.56 22.43 500KB-600KB 25.51 26.55 18.51 23.4
> 600KB-700KB 27.25 28.41 19.91 25.46 700KB-800KB 27.58 29.18 20.26 27.17
> 800KB-900KB 27 29.11 20 27.4 900KB-1MB 28.19 29.38 21.15 26.43 1MB -2MB
> 27.41 29.46 21.33 27.73
> The following shows the time in seconds to compress data of various
> sizes. LZO1x is the
> fastest and as file sizes increase, LZO1x time hardly increases at all.
> It's interesing
> to note as compression ratios increase LZOx-999 performs much worse than
> Zlib. So LZO is faster
> on the low end and slower (5 to 6 times slower) on the high end.
>
> range Zlib-1 Zlib-6 LZOx-1 LZOx-999 cmp% 0-250b 0.001 0 0 0 250-500b
> 0 0 0 0.001 500-1KB 0 0 0 0.001 1KB-10KB 0.001 0.001 0 0.002
> 10KB-100KB 0.004 0.006 0.001 0.017 100KB-200KB 0.012 0.017 0.002 0.054
> 200KB-300KB 0.018 0.024 0.003 0.087 300KB-400KB 0.022 0.03 0.003 0.121
> 400KB-500KB 0.027 0.037 0.004 0.151 500KB-600KB 0.031 0.044 0.004 0.184
> 600KB-700KB 0.035 0.051 0.006 0.211 700KB-800KB 0.039 0.057 0.006 0.243
> 800KB-900KB 0.045 0.064 0.006 0.27 900KB-1MB 0.049 0.072 0.006 0.307
>
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
>
--94eb2c070a1c0e19c30525c4e29b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Thanks for providing an in-depth, data driven analysis.<di=
v><br></div><div>It is surprising that zlib provides better compression at =
the high end.=C2=A0 I wonder if that is due to our specific data patterns -=
many zeroes - which probably puts us into the zlib dictionary fast path.</=
div><div><br></div><div><br></div></div><div class=3D"gmail_extra"><br><div=
class=3D"gmail_quote">On Sat, Nov 28, 2015 at 4:41 PM, Peter Tschipper via=
bitcoin-dev <span dir=3D"ltr"><<a href=3D"mailto:bitcoin-dev@lists.linu=
xfoundation.org" target=3D"_blank">bitcoin-dev@lists.linuxfoundation.org</a=
>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
=20
=20
=20
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div>Hi All,<br>
<br>
Here are some final results of testing with the reference
implementation for compressing blocks and transactions. This
implementation also concatenates blocks and transactions when
possible so you'll see data sizes in the 1-2MB ranges.<br>
<br>
Results below show the time it takes to sync the first part of the
blockchain, comparing Zlib to the LZOx library.=C2=A0 (LZOf was also
tried but wasn't found to be as good as LZOx).=C2=A0 The followin=
g
shows tests run with and without latency.=C2=A0 With latency on the
network, all compression libraries performed much better than
without compression.<br>
<br>
I don't think it's entirely obvious which is better, Zlib or =
LZO.=C2=A0
Although I prefer the higher compression of Zlib, overall I would
have to give the edge to LZO.=C2=A0 With LZO we have the fastest most
scalable option when at the lowest compression setting which will
be a boost in performance for users that want peformance over
compression, and then at the high end LZO provides decent
compression which approaches Zlib, (although at a higher cost) but
good for those that want to save more bandwidth.<br>
<br>
<table style=3D"border-collapse:collapse;width:403pt" border=3D"0" wi=
dth=3D"536" cellpadding=3D"0" cellspacing=3D"0">
<colgroup><col style=3D"width:97pt" width=3D"129"> <col style=3D"wi=
dth:71pt" width=3D"94"> <col style=3D"width:73pt" width=3D"97"> <col style=
=3D"width:76pt" width=3D"101"> <col style=3D"width:86pt" width=3D"115"> </c=
olgroup><tbody>
<tr style=3D"height:15.75pt" height=3D"21">
<td style=3D"height:15.75pt;width:97pt" height=3D"21" width=3D"=
129">Uncompressed 60ms</td>
<td style=3D"width:71pt" width=3D"94">Zlib-1 (60ms)</td>
<td style=3D"width:73pt" width=3D"97">Zlib-6 (60ms)</td>
<td style=3D"width:76pt" width=3D"101">LZOx-1 (60ms)</td>
<td style=3D"width:86pt" width=3D"115">LZOx-999 (60ms)</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">219</td>
<td>299</td>
<td>296</td>
<td>294</td>
<td>291</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">432</td>
<td>568</td>
<td>565</td>
<td>558</td>
<td>548</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">652</td>
<td>835</td>
<td>836</td>
<td>819</td>
<td>811</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">866</td>
<td>1106</td>
<td>1107</td>
<td>1081</td>
<td>1071</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1082</td>
<td>1372</td>
<td>1381</td>
<td>1341</td>
<td>1333</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1309</td>
<td>1644</td>
<td>1654</td>
<td>1605</td>
<td>1600</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1535</td>
<td>1917</td>
<td>1936</td>
<td>1873</td>
<td>1875</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1762</td>
<td>2191</td>
<td>2210</td>
<td>2141</td>
<td>2141</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1992</td>
<td>2463</td>
<td>2486</td>
<td>2411</td>
<td>2411</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">2257</td>
<td>2748</td>
<td>2780</td>
<td>2694</td>
<td>2697</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">2627</td>
<td>3034</td>
<td>3076</td>
<td>2970</td>
<td>2983</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">3226</td>
<td>3416</td>
<td>3397</td>
<td>3266</td>
<td>3302</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">4010</td>
<td>3983</td>
<td>3773</td>
<td>3625</td>
<td>3703</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">4914</td>
<td>4503</td>
<td>4292</td>
<td>4127</td>
<td>4287</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">5806</td>
<td>4928</td>
<td>4719</td>
<td>4529</td>
<td>4821</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">6674</td>
<td>5249</td>
<td>5164</td>
<td>4840</td>
<td>5314</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">7563</td>
<td>5603</td>
<td>5669</td>
<td>5289</td>
<td>6002</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">8477</td>
<td>6054</td>
<td>6268</td>
<td>5858</td>
<td>6638</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">9843</td>
<td>7085</td>
<td>7278</td>
<td>6868</td>
<td>7679</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">11338</td>
<td>8215</td>
<td>8433</td>
<td>8044</td>
<td>8795</td>
</tr>
</tbody>
</table>
<br>
<br>
These results from testing on a highspeed wireless LAN (very small
latency)<br>
<br>
<table style=3D"border-collapse:collapse;width:405pt" border=3D"0" wi=
dth=3D"540" cellpadding=3D"0" cellspacing=3D"0">
<colgroup><col style=3D"width:92pt" span=3D"2" width=3D"123"> <col =
style=3D"width:53pt" width=3D"70"> <col style=3D"width:55pt" width=3D"73"> =
<col style=3D"width:53pt" width=3D"71"> <col style=3D"width:60pt" width=3D"=
80"> </colgroup><tbody>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt;width:92pt" height=3D"17" width=3D"=
123">Results in seconds</td>
<td style=3D"width:92pt" width=3D"123"><br>
</td>
<td style=3D"width:53pt" width=3D"70"><br>
</td>
<td style=3D"width:55pt" width=3D"73"><br>
</td>
<td style=3D"width:53pt" width=3D"71"><br>
</td>
<td style=3D"width:60pt" width=3D"80"><br>
</td>
</tr>
<tr style=3D"height:15.75pt" height=3D"21">
<td style=3D"height:15.75pt" height=3D"21">Num blocks sync'=
d</td>
<td>Uncompressed</td>
<td>Zlib-1</td>
<td>Zlib-6</td>
<td>LZOx-1</td>
<td>LZOx-999</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">10000</td>
<td>255</td>
<td>232</td>
<td>233</td>
<td>231</td>
<td>257</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">20000</td>
<td>464</td>
<td>414</td>
<td>420</td>
<td>407</td>
<td>453</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">30000</td>
<td>677</td>
<td>594</td>
<td>611</td>
<td>585</td>
<td>650</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">40000</td>
<td>887</td>
<td>782</td>
<td>795</td>
<td>760</td>
<td>849</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">50000</td>
<td>1099</td>
<td>961</td>
<td>977</td>
<td>933</td>
<td>1048</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">60000</td>
<td>1310</td>
<td>1145</td>
<td>1167</td>
<td>1110</td>
<td>1259</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">70000</td>
<td>1512</td>
<td>1330</td>
<td>1362</td>
<td>1291</td>
<td>1470</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">80000</td>
<td>1714</td>
<td>1519</td>
<td>1552</td>
<td>1469</td>
<td>1679</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">90000</td>
<td>1917</td>
<td>1707</td>
<td>1747</td>
<td>1650</td>
<td>1882</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">100000</td>
<td>2122</td>
<td>1905</td>
<td>1950</td>
<td>1843</td>
<td>2111</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">110000</td>
<td>2333</td>
<td>2107</td>
<td>2151</td>
<td>2038</td>
<td>2329</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">120000</td>
<td>2560</td>
<td>2333</td>
<td>2376</td>
<td>2256</td>
<td>2580</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">130000</td>
<td>2835</td>
<td>2656</td>
<td>2679</td>
<td>2558</td>
<td>2921</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">140000</td>
<td>3274</td>
<td>3259</td>
<td>3161</td>
<td>3051</td>
<td>3466</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">150000</td>
<td>3662</td>
<td>3793</td>
<td>3547</td>
<td>3440</td>
<td>3919</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">160000</td>
<td>4040</td>
<td>4172</td>
<td>3937</td>
<td>3767</td>
<td>4416</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">170000</td>
<td>4425</td>
<td>4625</td>
<td>4379</td>
<td>4215</td>
<td>4958</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">180000</td>
<td>4860</td>
<td>5149</td>
<td>4895</td>
<td>4781</td>
<td>5560</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">190000</td>
<td>5855</td>
<td>6160</td>
<td>5898</td>
<td>5805</td>
<td>6557</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">200000</td>
<td>7004</td>
<td>7234</td>
<td>7051</td>
<td>6983</td>
<td>7770</td>
</tr>
</tbody>
</table>
<br>
<br>
The following show the compression ratio acheived for various
sizes of data.=C2=A0 Zlib is the clear<br>
winner for compressibility, with LZOx-999 coming close but at a
cost.<br>
<br>
<table style=3D"border-collapse:collapse;width:457pt" border=3D"0" wi=
dth=3D"608" cellpadding=3D"0" cellspacing=3D"0">
<colgroup><col style=3D"width:182pt" width=3D"242"> <col style=3D"w=
idth:62pt" width=3D"82"> <col style=3D"width:82pt" width=3D"109"> <col styl=
e=3D"width:83pt" width=3D"111"> <col style=3D"width:48pt" width=3D"64"> </c=
olgroup><tbody>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt;width:182pt" height=3D"17" width=3D=
"242">range</td>
<td style=3D"width:62pt" width=3D"82">Zlib-1 cmp%<br>
</td>
<td style=3D"width:82pt" width=3D"109">Zlib-6 cmp%</td>
<td style=3D"width:83pt" width=3D"111">LZOx-1 cmp%</td>
<td style=3D"width:48pt" width=3D"64">LZOx-999 cmp%</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">0-250b</td>
<td>12.44</td>
<td>12.86</td>
<td>10.79</td>
<td>14.34</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">250-500b<span>=C2=A0=
</span></td>
<td>19.33</td>
<td>12.97</td>
<td>10.34</td>
<td>11.11</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">600-700</td>
<td>16.72</td>
<td>n/a</td>
<td>12.91</td>
<td>17.25</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">700-800</td>
<td>6.37</td>
<td>7.65</td>
<td>4.83</td>
<td>8.07</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">900-1KB</td>
<td>6.54</td>
<td>6.95</td>
<td>5.64</td>
<td>7.9</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1KB-10KB</td>
<td>25.08</td>
<td>25.65</td>
<td>21.21</td>
<td>22.65</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">10KB-100KB</td>
<td>19.77</td>
<td>21.57</td>
<td>14.37</td>
<td>19.02</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">100KB-200KB</td>
<td>21.49</td>
<td>23.56</td>
<td>15.37</td>
<td>21.55</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">200KB-300KB</td>
<td>23.66</td>
<td>24.18</td>
<td>16.91</td>
<td>22.76</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">300KB-400KB</td>
<td>23.4</td>
<td>23.7</td>
<td>16.5</td>
<td>21.38</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">400KB-500KB</td>
<td>24.6</td>
<td>24.85</td>
<td>17.56</td>
<td>22.43</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">500KB-600KB</td>
<td>25.51</td>
<td>26.55</td>
<td>18.51</td>
<td>23.4</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">600KB-700KB</td>
<td>27.25</td>
<td>28.41</td>
<td>19.91</td>
<td>25.46</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">700KB-800KB</td>
<td>27.58</td>
<td>29.18</td>
<td>20.26</td>
<td>27.17</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">800KB-900KB</td>
<td>27</td>
<td>29.11</td>
<td>20</td>
<td>27.4</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">900KB-1MB</td>
<td>28.19</td>
<td>29.38</td>
<td>21.15</td>
<td>26.43</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1MB -2MB</td>
<td>27.41</td>
<td>29.46</td>
<td>21.33</td>
<td>27.73</td>
</tr>
</tbody>
</table>
<br>
The following shows the time in seconds to compress data of
various sizes.=C2=A0 LZO1x is the<br>
fastest and as file sizes increase, LZO1x time hardly increases at
all.=C2=A0 It's interesing<br>
to note as compression ratios increase LZOx-999 performs much
worse than Zlib.=C2=A0 So LZO is faster<br>
on the low end and slower (5 to 6 times slower) on the high end.<br>
<br>
<table style=3D"border-collapse:collapse;width:457pt" border=3D"0" wi=
dth=3D"608" cellpadding=3D"0" cellspacing=3D"0">
<colgroup><col style=3D"width:182pt" width=3D"242"> <col style=3D"w=
idth:62pt" width=3D"82"> <col style=3D"width:82pt" width=3D"109"> <col styl=
e=3D"width:83pt" width=3D"111"> <col style=3D"width:48pt" width=3D"64"> </c=
olgroup><tbody>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt;width:182pt" height=3D"17" width=3D=
"242">range</td>
<td style=3D"width:62pt" width=3D"82">Zlib-1</td>
<td style=3D"width:82pt" width=3D"109">Zlib-6</td>
<td style=3D"width:83pt" width=3D"111">LZOx-1</td>
<td style=3D"width:48pt" width=3D"64">LZOx-999 cmp%</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">0-250b<span>=C2=A0=
=C2=A0=C2=A0</span></td>
<td>0.001</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">250-500b<span>=C2=A0=
=C2=A0</span></td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0.001</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">500-1KB<span>=C2=A0=
=C2=A0=C2=A0=C2=A0</span></td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0.001</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">1KB-10KB<span>=C2=A0=
=C2=A0=C2=A0</span></td>
<td>0.001</td>
<td>0.001</td>
<td>0</td>
<td>0.002</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">10KB-100KB<span>=C2=
=A0=C2=A0</span></td>
<td>0.004</td>
<td>0.006</td>
<td>0.001</td>
<td>0.017</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">100KB-200KB<span>=C2=
=A0</span></td>
<td>0.012</td>
<td>0.017</td>
<td>0.002</td>
<td>0.054</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">200KB-300KB<span>=C2=
=A0</span></td>
<td>0.018</td>
<td>0.024</td>
<td>0.003</td>
<td>0.087</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">300KB-400KB<span>=C2=
=A0</span></td>
<td>0.022</td>
<td>0.03</td>
<td>0.003</td>
<td>0.121</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">400KB-500KB<span>=C2=
=A0</span></td>
<td>0.027</td>
<td>0.037</td>
<td>0.004</td>
<td>0.151</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">500KB-600KB<span>=C2=
=A0</span></td>
<td>0.031</td>
<td>0.044</td>
<td>0.004</td>
<td>0.184</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">600KB-700KB<span>=C2=
=A0</span></td>
<td>0.035</td>
<td>0.051</td>
<td>0.006</td>
<td>0.211</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">700KB-800KB<span>=C2=
=A0</span></td>
<td>0.039</td>
<td>0.057</td>
<td>0.006</td>
<td>0.243</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">800KB-900KB<span>=C2=
=A0</span></td>
<td>0.045</td>
<td>0.064</td>
<td>0.006</td>
<td>0.27</td>
</tr>
<tr style=3D"height:12.75pt" height=3D"17">
<td style=3D"height:12.75pt" height=3D"17">900KB-1MB<span>=C2=
=A0=C2=A0</span></td>
<td>0.049</td>
<td>0.072</td>
<td>0.006</td>
<td>0.307</td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
<br>_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.=
linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.org/mail=
man/listinfo/bitcoin-dev</a><br>
<br></blockquote></div><br></div>
--94eb2c070a1c0e19c30525c4e29b--
|