-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
fast-compression-benchmark-brotli-zstandard.html
1620 lines (1620 loc) · 76.2 KB
/
fast-compression-benchmark-brotli-zstandard.html
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
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<meta name="AUTHOR" content="PeaZip Free Archiver Utility">
<meta name="DESCRIPTION"
content="Fast compression benchmark. Comparison of Brotli, Zstandard formats performances, br vs zst compression and extraction speed, comparative test with 7Z LZMA2, RAR PPMd, ZIP Deflate algorithms.">
<meta name="KEYWORDS"
content="brotli, zstandard, zstd, br, zst, compression, test, extraction, decompression, ratio, speed, size, benchmark, performances, comparative, ppmd, deflate, lzma2, algorithms, rar, zip, 7z, fast, fastest, window">
<meta name="ROBOTS" content="all">
<title>Fast compression: Brotli Zstandard comparative speed
performances test</title>
<meta name="viewport" content="width=device-width">
<meta property="og:site_name"
content="PeaZip file archiver utility, free RAR ZIP software">
<meta property="og:title"
content="Fast compression: Brotli Zstandard comparative speed performances test">
<meta property="og:description"
content="Fast compression benchmark. Comparison of Brotli, Zstandard formats performances, br vs zst compression and extraction speed, comparative test with 7Z LZMA2, RAR PPMd, ZIP Deflate algorithms.">
<meta property="og:image"
content="brotli-zstandard-comparative-benchmark.png">
<meta property="og:url"
content="https://peazip.github.io/fast-compression-benchmark-brotli-zstandard.html">
<link rel="stylesheet" type="text/css" href="peazip-software.css">
</head>
<body>
<div style="text-align: center;">
<table
style="width: 100%; text-align: left; margin-left: auto; margin-right: auto;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; text-align: center;">
<table
style="text-align: left; margin-left: auto; margin-right: auto;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;"> <img
title="Benchmark: fast compression Brotli vs Zstd"
alt="brotli vs zstd performances comparison" src="peazip_ico24.png"
style="border: 0px solid ; width: 24px; height: 24px;"> </td>
<td style="vertical-align: middle;">
<br>
</td>
<td style="vertical-align: middle; font-weight: bold;"><a
href="index.html">DOWNLOAD PEAZIP</a> </td>
<td style="vertical-align: middle; font-weight: bold;">
<br>
</td>
<td style="vertical-align: middle; font-weight: bold;"><a
href="peazip-help-faq.html">ONLINE SUPPORT</a> </td>
<td style="vertical-align: top; font-weight: bold;">
<br>
</td>
<td style="vertical-align: middle; font-weight: bold;"><a
href="screenshots-peazip-1.html">SCREENSHOTS</a> </td>
<td style="vertical-align: top; font-weight: bold;">
<br>
</td>
<td style="vertical-align: middle; font-weight: bold;"><a
href="peazip-compression-benchmark.html">BENCHMARKS</a> </td>
<td style="vertical-align: top;">
<br>
</td>
<td style="vertical-align: middle; font-weight: bold;"><a
href="donations.html">DONATE</a> </td>
</tr>
<tr>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><img
alt="brotli vs zstandard" src="free-rar/archive-manager.png"
style="width: 12px; height: 12px;"> </td>
<td style="vertical-align: top;"><br>
</td>
<td style="text-align: center; vertical-align: bottom;"><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr align="center">
<td
style="vertical-align: top; background-color: rgb(72, 136, 248);">
<div style="text-align: left;"> </div>
<table
style="width: 960px; text-align: left; font-weight: bold; color: rgb(253, 253, 253);"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="1" rowspan="1" style="vertical-align: top;"> <br>
<h1 style="text-align: center;"><big><big><big><a
style="font-weight: bold;" name="faster_compressor"></a><span
style="font-weight: bold;">Fast compression:
Brotli, Zstandard comparative speed, performances test</span><br>
</big></big></big></h1>
<br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td
style="vertical-align: top; background-color: rgb(204, 204, 204);"><img
alt="br vs zst compression and extraction speed"
src="free-rar/file-compressor.png" style="width: 2px; height: 2px;"><br>
</td>
</tr>
<tr>
<td
style="vertical-align: top; background-color: rgb(240, 239, 238);"><img
alt="Fast compression: Brotli, Zstandard comparative speed, performances test"
src="free-rar/file-compressor.png" style="width: 2px; height: 2px;"><br>
</td>
</tr>
<tr align="center">
<td style="vertical-align: top;"><br>
<table style="text-align: left;" border="0" cellpadding="6"
cellspacing="0">
<tbody>
<tr>
<td
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(240, 239, 238);"><small><a
href="peazip-compression-benchmark.html">COMPRESSION BENCHMARK</a></small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold;"><small><br>
</small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold;"><small><a
href="fast-compression-benchmark-brotli-zstandard.html">BROTLI VS
ZSTANDARD</a></small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold;"><small><br>
</small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(240, 239, 238);"><small><a
href="maximum-compression-benchmark.html">MAXIMUM COMPRESSION</a></small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold;"><small><br>
</small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(240, 239, 238);"><small><a
href="fastest-compression-zip-deflate-benchmark.html">FASTER THAN ZIP</a><br>
</small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold;"><small><br>
</small></td>
<td
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(240, 239, 238);"><small><a
href="benchmark-open-large-archive.html">LARGE ARCHIVES</a></small></td>
</tr>
</tbody>
</table>
<br>
<table
style="background-color: rgb(240, 240, 240); width: 960px; text-align: left;"
border="0" cellpadding="24" cellspacing="0">
<tbody>
<tr align="left">
<td
style="background-color: rgb(255, 255, 255); vertical-align: top;">
<div style="text-align: left; color: rgb(0, 0, 0);">
<ul>
<li>
<p><a
href="fast-compression-benchmark-brotli-zstandard.html#brotli_vs_zstandard">BROTLI
VS ZSTD
BENCHMARK
SETTINGS</a></p>
</li>
<li>
<p><a
href="fast-compression-benchmark-brotli-zstandard.html#brotli_vs_zstd_compressor">COMPRESSION
/
DECOMPRESSION SPEED, PERFORMANCES</a></p>
</li>
<li>
<p><a
href="fast-compression-benchmark-brotli-zstandard.html#what_is_the_fastest_compression_algorithm">CONCLUSIONS:
BROTLI, ZSTANDARD COMPARISON<br>
</a></p>
</li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
<table
style="background-color: rgb(240, 240, 240); width: 960px; text-align: left;"
border="0" cellpadding="48" cellspacing="0">
<tbody>
<tr align="left">
<td
style="background-color: rgb(255, 255, 255); vertical-align: top;">
<div style="text-align: left; color: rgb(0, 0, 0);">
<h2 style="font-weight: bold;"><big><big><big><a
name="brotli_vs_zstandard"></a><a
href="fast-compression-benchmark-brotli-zstandard.html#faster_compressor">Brotli
vs Zstd benchmark
settings</a></big></big></big></h2>
<big> </big> </div>
<br>
<table style="width: 100%; text-align: left;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; width: 448px;">
<table
style="background-color: rgb(240, 240, 240); width: 100%; text-align: left;"
border="0" cellpadding="24" cellspacing="1">
<tbody>
<tr>
<td colspan="1" rowspan="1"
style="vertical-align: top; background-color: rgb(250, 250, 250);">
<p><big><span style="font-weight: bold;">Goals</span></big></p>
<p>Test the new fast compressors Brotli
(Google) and Zstandard (Facebook) at different compression settings to
determine what compression level and compression / decompression speed
the two
standards are capable to offer as general purpose file compressors.<br>
</p>
<ol>
<li><a
name="compare_brotli_zstandard_performances"></a>Find out what is the
more efficient
algorithm between Brotli and Zstandard in terms of speed and
compression
ratio, at different compression settings ranging from minimum to
maximum. Which one is the fastest compressor / decompressor? Which ones
compresses better? Which algorithm scales better at different
compression levels?<br>
</li>
<li><a
name="brotli_zstd_ppmd_lzma_performances"></a>Compare Brotli and
Zstandard performances
with classic reference
compression formats as 7Z, RAR and ZIP at standard compression levels.</li>
</ol>
</td>
</tr>
</tbody>
</table>
<br>
<table
style="background-color: rgb(240, 240, 240); width: 100%; text-align: left;"
border="0" cellpadding="24" cellspacing="1">
<tbody>
<tr>
<td colspan="1" rowspan="1"
style="vertical-align: top; background-color: rgb(250, 250, 250);">
<h3><span style="font-weight: bold;"><big>Software
settings</big><br>
</span></h3>
<br>
Benchmarks
are conducted
on Windows 10 2009 64 bit.<br>
PeaZip 7.2.0 64 bit is tested for compression and decompression in
following formats:<br>
<ul>
<li>7z 19.00 (64 bit)<br>
</li>
<li>Brotli 1.0.7 (64 bit)<br>
</li>
<li>Zstd 1.4.4 (64 bit)<br>
</li>
</ul>
The reference application for ZIP and RAR formats performances in this
test is WinRar 5.8 64 bit. </td>
</tr>
</tbody>
</table>
<br>
<table
style="background-color: rgb(240, 240, 240); width: 100%; text-align: left;"
border="0" cellpadding="24" cellspacing="1">
<tbody>
<tr>
<td colspan="1" rowspan="1"
style="vertical-align: top; background-color: rgb(250, 250, 250);">
<h4><big><span style="font-weight: bold;">Hardware
settings</span></big></h4>
<br>
Notebook with Intel Core i7-8565U CPU, 4
physical cores with hyper-threading (8 logical cores), 8 GB RAM<br>
System disk 512 GB PCIe NVMe SSD, NTFS filesystem<br>
</td>
</tr>
</tbody>
</table>
</td>
<td style="vertical-align: top; width: 24px;"><br>
</td>
<td style="vertical-align: top; width: 448px;">
<div style="text-align: left;"> </div>
<table
style="background-color: rgb(240, 240, 240); width: 100%; text-align: left;"
border="0" cellpadding="24" cellspacing="1">
<tbody>
<tr>
<td colspan="1" rowspan="1"
style="vertical-align: top; background-color: rgb(250, 250, 250);">
<div style="text-align: left;"> </div>
<div style="text-align: justify;">
<div style="text-align: left;"> </div>
<h3 style="text-align: left;"><big><span
style="font-weight: bold;">Compression
formats compared in this benchmark</span></big><br>
</h3>
</div>
<div style="text-align: left;"> </div>
<ul>
<li><a href="7z-file-format.html"><span
style="font-weight: bold;">7Z file
format</span></a>
Open Source archive format
by 7-Zip, providing high compression ratio, tested at default
compression level, default LZMA2 algorithm, from PeaZip<br>
</li>
</ul>
<ul>
<li><a
href="brotli-compressed-file-format.html"><span
style="font-weight: bold;">Br (Brotli) compression format</span></a>
created by Google for providing very fast
compression and decompression, tested from fastest to maximum
compression level from PeaZip<br>
</li>
</ul>
<ul>
<li><a href="what-is-rar-file.html"><span
style="font-weight: bold;">RAR file
format</span></a>
(RarLabs RAR5 revision) proprietary archive format providing
better
compression that ZIP using PPMd algorithm, tested
at default compression level from WinRar<br>
</li>
</ul>
<ul>
<li><a href="zip-file-format.html"><span
style="font-weight: bold;">ZIP file
format</span></a>
widely used archive format, tested at default compression setting (with
Deflate algorithm) from
WinRar, which qualified as the fastest zip compressor in previous batch
of PeaZip's <a href="peazip-compression-benchmark.html">compression
benchmarks</a> </li>
</ul>
<ul>
<li><a href="zst-compressed-file-format.html"><span
style="font-weight: bold;">Zst (Zstandard)
compression format</span></a> created by Facebook, multithreaded Zstd
compressor,
providing very fast
compression and decompression, tested from fastest to maximum
compression level from PeaZip</li>
</ul>
</td>
</tr>
</tbody>
</table>
<br>
<table
style="background-color: rgb(240, 240, 240); width: 100%; text-align: left;"
border="0" cellpadding="24" cellspacing="1">
<tbody>
<tr>
<td colspan="1" rowspan="1"
style="vertical-align: top; background-color: rgb(250, 250, 250);"> <big><span
style="font-weight: bold;">Input data</span></big><br>
<br>
Benchmark input contains 43 files in 4 directories for total 1.22 GB
(1,318,000,857 bytes), composed by well known reference files
representative of different data structures, widely used for
compression
benchmarks:<br>
<ul>
<li><a target="_blank"
href="http://corpus.canterbury.ac.nz/descriptions/">Calgary
and
Canterbury compression corpora<img
alt="Calgary Corpus, Canterbury corpus for standard compression tests"
title="Standard compression corpus files" src="free-rar/extractor.png"
style="border: 0px solid ; width: 12px; height: 10px;"></a></li>
<li><a target="_blank"
href="http://cs.fit.edu/%7Emmahoney/compression/enwik8.zip">enwik8<img
alt="english wikipedia dump for data compression benchmark"
title="Enwik8 compression test file" src="free-rar/extractor.png"
style="border: 0px solid ; width: 12px; height: 10px;"></a> and <a
target="_blank"
href="http://cs.fit.edu/%7Emmahoney/compression/enwik9.zip">enwik9<img
alt="english wikipedia 1GB dump for compression benchmark"
title="Enwik9 compression test file" src="free-rar/extractor.png"
style="border: 0px solid ; width: 12px; height: 10px;"></a></li>
<li><a target="_blank"
href="http://sun.aei.polsl.pl/%7Esdeor/index.php?page=silesia">Silesia
compression corpus<img
alt="Silesia corpus for standard file compression benchmarks"
title="Silesia corpus" src="free-rar/extractor.png"
style="border: 0px solid ; width: 12px; height: 10px;"></a></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table
style="background-color: rgb(240, 240, 240); width: 960px; text-align: left;"
border="0" cellpadding="48" cellspacing="0">
<tbody>
<tr align="left">
<td
style="background-color: rgb(255, 255, 255); vertical-align: top;">
<h3><big><big><big><a style="font-weight: bold;"
name="brotli_vs_zstd_compressor"></a><a
href="fast-compression-benchmark-brotli-zstandard.html#faster_compressor"><span
style="font-weight: bold;">Compression
/ decompression speed, performances</span><br>
</a></big></big></big></h3>
<br>
<br>
<big><span style="font-weight: bold;">Benchmark methods</span></big><br>
<br>
<a name="brotli_versus_zstandard"></a>Benchmark
input data is saved to system disk (PCIe <span
style="font-weight: bold;">SSD</span>) and compressed to system
disk, same partition, separate directory; the resulting archives are
then extracted to
separate directory on same (system) disk/partition. The use of a fast
disk support is meant to minimize the impact of disk speed on Brotli
and Zstandard performances.<br>
<br>
Each compression and extraction test is repeated 10 times to get an
average value; size is expressed in MB, time in seconds.<br>
<br>
Brotli and Zstandard requires to
consolidate the multiple input files of the benchmark into a single TAR
file, the overhead of tar / untar operations is about one second (about
one second performance penalty to tar, about one second to untar) and
needs to be taken in account when comparing with results of classic
compressors in 7Z, RAR and ZIP formats.<br>
<br>
Following compression levels were tested:<br>
<ul>
<li>fastest, minimum compression supported by the
format, defined as 0 in Brotli, 1 in Zstd</li>
<li>default, defined as 3 for both compressors</li>
<li>high and very high compression levels, intermediate
settings between default and maximum, chosen as 5 and 7 for Brotli,
and as 9 and 15 for Zstd</li>
<li>maximum compression level, defined as 9 for Brotli
and 19 for Zstd</li>
</ul>
<a name="multithreaded_extraction_test"></a>As current
implementation of Zstandard is multithreaded while Brotli is
not, the same test were conducted also on Zstd (Zstandard) compressor
with -T1 option which disables multithreading, to provide also a
meaningful comparison on the single thread. PeaZip by default uses
the -T0 option enabling automatic multithreading using all suitable CPU
resources.<br>
<br>
<a name="same_window_size"></a>As Zstandard window size is
variable, depending on the compression
level, while Brotli uses fixed window size, a second test batch was
conducted in order to compare the two algorithms in closer conditions -
while the first batch of test aims to a simple out-of-the-box
performances comparison.<br>
In this second test, <span style="font-weight: bold;">window size</span>
was fixed to 128 MB (2^27 bytes) for
both
algorithms, with --large_window=27 option for Brotli, and --long=27 for
Zstd, which also runs this test series single threaded with -T1
parameter.<br>
Having the two algorithms running with same windows size and same
number of threads allows to better understand efficiency of Brotli and
Zstandard on the basis of reasonably similar cost of computing
resources, and choosing a such large window size challenges the ability
of the algorithms in preserving speed performances and efficiently
scale the compression ratio.<br>
<br>
<a name="fast_compression_test_settings"></a>No extra
compression settings were used to fine tune the compression,
neither for Brotli nor for Zstandard, compression was defined
exclusively setting the compression level parameter. Both algorithms
features plenty fine-tuning options, which are out of the scope of this
benchmark.<br>
<br>
For classic file archiving formats ZIP, RAR, and 7Z, it was tested only
the default compression level, to highlight typical compression / speed
tradeoff commonly offered out of the box. Testing the entire
performance spectrum of those algorithms against Brotli and Zstandard
is out of the scope of the present analysis, but is a possible future
topic of interest.<br>
<br>
<br>
<h2><big><span style="font-weight: bold;">Brotli vs
Zstandard
benchmark results
tables</span></big></h2>
<h3><span style="font-weight: bold;"></span></h3>
<span style="font-weight: bold;"><br>
</span>Out-of-the-box compression and extraction times in
seconds, size of
resulting archive in MB, the lower the better for all columns.<span
style="font-weight: bold;"><br>
</span><br>
<table x:str="" style="border-collapse: collapse;"
border="0" cellpadding="0" cellspacing="0">
<col span="6" style="width: 68pt;" width="90"> <tbody>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td colspan="3" rowspan="1"
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(255, 170, 170);">Brotli<br>
</td>
<td colspan="4" rowspan="1"
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(187, 204, 255);">Zstandard<br>
</td>
</tr>
<tr style="height: 33.75pt;" height="45">
<td
style="height: 32px; width: 150px; font-weight: bold; background-color: rgb(240, 240, 240); text-align: center; vertical-align: middle;"
class="xl22">Compression level<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(255, 204, 204);">Compression
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(255, 204, 204);">Extraction
<br>
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(255, 204, 204);">Archive
size (MB)</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(204, 221, 255);">Compression<br>
-T0 (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(204, 221, 255);">Compression
<br>
single thread -T1 (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(204, 221, 255);">Extraction
<br>
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; font-weight: bold; text-align: center; vertical-align: middle; height: 32px; width: 100px; background-color: rgb(204, 221, 255);">Archive
size (MB)</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Minimum<br>
Brotli -0 / Zstd -1<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">5.4<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">5.0<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">473<br>
</td>
<td
style="text-align: center; vertical-align: middle;">1.9<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="1.6">4.6<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">2.6<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">451<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Default<br>
Brotli -3 / Zstd -3<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">15.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">4.5<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">408<br>
</td>
<td
style="text-align: center; vertical-align: middle;">3.6<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="1.6">7.5<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.1<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">398<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">High<br>
Brotli -5 / Zstd -9<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">46.9<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">4.6<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">353<br>
</td>
<td
style="text-align: center; vertical-align: middle;">38.4<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="1.6">60.0<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.2<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">355<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Very
high<br>
Brotli -7 / Zstd -15<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">175.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">4.7<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">336<br>
</td>
<td
style="text-align: center; vertical-align: middle;">157.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="1.6">461.0<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.3<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">330<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Maximum<br>
Brotli -9 / Zstd -19<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="39.6">677.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="42.2">5.7<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="73.6">322<br>
</td>
<td
style="text-align: center; vertical-align: middle;">359.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="1">1030.0<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">4.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13">302<br>
</td>
</tr>
</tbody>
</table>
<span style="font-style: italic;"></span><br>
<a name="fixed_window_size"></a>Fixed 128 MB window size
for both algorithms: <br>
<br>
<table x:str="" style="border-collapse: collapse;"
border="0" cellpadding="0" cellspacing="0">
<col span="6" style="width: 68pt;" width="90"> <tbody>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td colspan="3" rowspan="1"
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(255, 204, 153);">Brotli
--large_window=27<br>
</td>
<td colspan="3" rowspan="1"
style="vertical-align: top; text-align: center; font-weight: bold; background-color: rgb(187, 187, 255);">Zstandard
-T1 --long=27<br>
</td>
</tr>
<tr style="height: 33.75pt;" height="45">
<td
style="height: 32px; width: 150px; font-weight: bold; background-color: rgb(240, 240, 240); text-align: center; vertical-align: middle;"
class="xl22">Compression level<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(255, 221, 170);">Compression
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(255, 221, 170);">Extraction
<br>
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(255, 221, 170);">Archive
size (MB)</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(204, 204, 255);">Compression<br>
-T0 (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(204, 204, 255);">Extraction
<br>
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; font-weight: bold; text-align: center; vertical-align: middle; height: 32px; width: 100px; background-color: rgb(204, 204, 255);">Archive
size (MB)</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Minimum<br>
Brotli -0 / Zstd -1<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">5.7<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">5.0<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">473<br>
</td>
<td
style="text-align: center; vertical-align: middle;">8.7<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">2.8<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">407<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Default<br>
Brotli -3 / Zstd -3<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">16.8<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">4.1<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">373<br>
</td>
<td
style="text-align: center; vertical-align: middle;">12.3<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.1<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">362<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">High<br>
Brotli -5 / Zstd -9<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">52.3<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">4.2<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">322<br>
</td>
<td
style="text-align: center; vertical-align: middle;">63.0<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.2<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">321<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Very
high<br>
Brotli -7 / Zstd -15<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">162.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">4.4<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="97.7">307<br>
</td>
<td
style="text-align: center; vertical-align: middle;">461.0<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.7<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13.4">295<br>
</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">Maximum<br>
Brotli -9 / Zstd -19<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="39.6">721.0<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="42.2">5.4<br>
</td>
<td class="xl26"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="73.6">293<br>
</td>
<td
style="text-align: center; vertical-align: middle;">1037.0<br>
</td>
<td
style="height: 32px; width: 100px; text-align: center; vertical-align: middle;">3.5<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="13">273<br>
</td>
</tr>
</tbody>
</table>
<br>
For reference, results of traditional compressors group, at default
compression settings:<br>
<br>
<table x:str="" style="border-collapse: collapse;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr style="height: 33.75pt;" height="45">
<td
style="height: 32px; width: 150px; font-weight: bold; background-color: rgb(240, 240, 240); text-align: center; vertical-align: middle;"
class="xl22">Compression format<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(192, 192, 192);">Compression
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(192, 192, 192);">Extraction
<br>
time (sec)<br>
</td>
<td class="xl23"
style="border-left: medium none; height: 32px; width: 100px; font-weight: bold; text-align: center; vertical-align: middle; background-color: rgb(192, 192, 192);">Archive
size (MB)</td>
</tr>
<tr style="height: 24pt;" height="32">
<td class="xl24"
style="border-top: medium none; height: 32px; width: 150px; text-align: center; vertical-align: middle; background-color: rgb(252, 252, 252);">ZIP<br>
WinRar, default<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="12.1">15.6<br>
</td>
<td class="xl25"
style="border-top: medium none; border-left: medium none; height: 32px; width: 100px; text-align: center; vertical-align: middle;"
x:num="16">6.0<br>
</td>
<td class="xl26"