Skip to content

Performance Metrics

Joe Tsai edited this page Dec 8, 2017 · 14 revisions

Table of Contents

Introduction

Performance metrics are fundamentally application specific and users of this library are encouraged to run their own tests to see if this library is a good fit. According to the data in this page, we can make the following generalities (based on the default compression rate and on relatively large files).

Relative to standard library in Go1.9:

  • BZip2 decompression is about 1.3x to 1.6x faster
  • DEFLATE decompression is about 1.6x to 2.3x faster

Relative to the canonical C implementations:

  • Brotli decompression is about 0.3x to 0.5x as fast
  • BZip2 compression is about 0.4x to 0.7x as fast
  • BZip2 decompression is about 0.9x to 1.1x as fast
  • DEFLATE decompression is about 0.6x to 0.7x as fast

As can be seen, we are still far from our goal of being within at least 80% of the C implementation in some cases. These will improve with further optimizations to this library and also with further improvements to the Go compiler itself.

Setup

Performance metrics are based on a system running the following:

Hardware Specification
OS Linux Mint 17.1 Rebecca
CPU Intel Core i7-3770 3.4 GHz
RAM 6 GiB DDR3 1333MHz

The software used are running the following versions:

Software Version
go 1.9.2
brotli 1.0.2
bzip2 1.0.6
zlib 1.2.8
dsnet/compress cc9eb1d7

The performance numbers below are generated by running the zbench.sh script. It runs benchmarks on multiple formats, multiple implementations of each format, on multiple test files, on multiple compression levels, and multiple file sizes.

The format of each trial is: <file_name>:<compression_level>:<file_size>

The different implementations tested are:

Implementation Description
std The Go standard library implementation
ds The implementation provided by this library
cgo The canonical C implementation (see versions above)

Metrics

Brotli

Brotli encoding rate

NOTE: Compressor not yet implemented.

Brotli decoding rate

benchmark              ds MB/s  delta      cgo MB/s  delta
digits.txt:1:1e4         70.51  1.00x        178.95  2.54x
digits.txt:1:1e5         70.48  1.00x        211.51  3.00x
digits.txt:1:1e6         73.96  1.00x        212.42  2.87x
digits.txt:6:1e4         55.94  1.00x        141.70  2.53x
digits.txt:6:1e5         64.11  1.00x        208.11  3.25x
digits.txt:6:1e6         76.38  1.00x        220.08  2.88x
digits.txt:9:1e4         56.55  1.00x        138.97  2.46x
digits.txt:9:1e5         62.85  1.00x        201.98  3.21x
digits.txt:9:1e6         75.38  1.00x        216.33  2.87x
huffman.txt:1:1e4        62.09  1.00x        165.95  2.67x
huffman.txt:1:1e5        63.47  1.00x        235.30  3.71x
huffman.txt:1:1e6        71.06  1.00x        239.27  3.37x
huffman.txt:6:1e4        63.70  1.00x        102.14  1.60x
huffman.txt:6:1e5        65.21  1.00x        119.87  1.84x
huffman.txt:6:1e6        71.39  1.00x        121.82  1.71x
huffman.txt:9:1e4        60.13  1.00x        101.24  1.68x
huffman.txt:9:1e5        64.56  1.00x        121.58  1.88x
huffman.txt:9:1e6        71.94  1.00x        122.38  1.70x
twain.txt:1:1e4          59.83  1.00x        174.36  2.91x
twain.txt:1:1e5          70.83  1.00x        237.74  3.36x
twain.txt:1:1e6          79.97  1.00x        256.36  3.21x
twain.txt:6:1e4          55.34  1.00x        159.71  2.89x
twain.txt:6:1e5          74.22  1.00x        250.40  3.37x
twain.txt:6:1e6          97.19  1.00x        286.56  2.95x
twain.txt:9:1e4          55.76  1.00x        155.69  2.79x
twain.txt:9:1e5          73.76  1.00x        252.16  3.42x
twain.txt:9:1e6          97.24  1.00x        311.32  3.20x
binary.bin:1:1e4        108.94  1.00x        296.79  2.72x
binary.bin:1:1e5        131.97  1.00x        437.98  3.32x
binary.bin:1:1e6        147.03  1.00x        423.81  2.88x
binary.bin:6:1e4        116.54  1.00x        284.37  2.44x
binary.bin:6:1e5        133.88  1.00x        422.57  3.16x
binary.bin:6:1e6        152.69  1.00x        424.51  2.78x
binary.bin:9:1e4        117.74  1.00x        282.32  2.40x
binary.bin:9:1e5        137.32  1.00x        443.02  3.23x
binary.bin:9:1e6        159.55  1.00x        443.56  2.78x
random.bin:1:1e4        515.84  1.00x        257.35  0.50x
random.bin:1:1e5        515.23  1.00x       1970.39  3.82x
random.bin:1:1e6       1466.64  1.00x       2507.01  1.71x
random.bin:6:1e4        558.28  1.00x        293.56  0.53x
random.bin:6:1e5        507.52  1.00x       2117.60  4.17x
random.bin:6:1e6       1357.09  1.00x       2680.91  1.98x
random.bin:9:1e4        540.79  1.00x        286.10  0.53x
random.bin:9:1e5        507.26  1.00x       2059.89  4.06x
random.bin:9:1e6       1474.06  1.00x       3064.87  2.08x
repeats.bin:1:1e4       166.12  1.00x        311.03  1.87x
repeats.bin:1:1e5       182.99  1.00x        595.84  3.26x
repeats.bin:1:1e6       215.81  1.00x        649.99  3.01x
repeats.bin:6:1e4       221.91  1.00x        346.61  1.56x
repeats.bin:6:1e5       211.86  1.00x        746.61  3.52x
repeats.bin:6:1e6       273.33  1.00x        870.17  3.18x
repeats.bin:9:1e4       229.48  1.00x        366.53  1.60x
repeats.bin:9:1e5       212.95  1.00x        758.24  3.56x
repeats.bin:9:1e6       279.92  1.00x        822.85  2.94x
zeros.bin:1:1e4         508.70  1.00x        312.87  0.61x
zeros.bin:1:1e5         540.41  1.00x        542.76  1.00x
zeros.bin:1:1e6        1125.60  1.00x        605.88  0.54x
zeros.bin:6:1e4         532.19  1.00x        305.84  0.57x
zeros.bin:6:1e5         535.79  1.00x        544.30  1.02x
zeros.bin:6:1e6        1184.51  1.00x        604.60  0.51x
zeros.bin:9:1e4         535.36  1.00x        301.10  0.56x
zeros.bin:9:1e5         573.44  1.00x        543.76  0.95x
zeros.bin:9:1e6        1223.93  1.00x        608.98  0.50x

Brotli compression ratio

NOTE: Compressor not yet implemented.

BZip2

BZip2 encoding rate

benchmark              ds MB/s  delta      cgo MB/s  delta
digits.txt:1:1e4          5.41  1.00x          7.57  1.40x
digits.txt:1:1e5          5.13  1.00x         12.59  2.46x
digits.txt:1:1e6          6.51  1.00x         12.95  1.99x
digits.txt:6:1e4          4.74  1.00x          7.57  1.60x
digits.txt:6:1e5          5.54  1.00x         12.66  2.28x
digits.txt:6:1e6          5.06  1.00x         12.45  2.46x
digits.txt:9:1e4          4.50  1.00x          7.55  1.68x
digits.txt:9:1e5          5.53  1.00x         12.61  2.28x
digits.txt:9:1e6          4.60  1.00x         12.16  2.64x
huffman.txt:1:1e4         4.23  1.00x          5.77  1.37x
huffman.txt:1:1e5         4.17  1.00x         11.59  2.78x
huffman.txt:1:1e6         5.34  1.00x         11.93  2.23x
huffman.txt:6:1e4         3.77  1.00x          5.80  1.54x
huffman.txt:6:1e5         4.38  1.00x         11.60  2.65x
huffman.txt:6:1e6         3.56  1.00x         11.38  3.20x
huffman.txt:9:1e4         3.57  1.00x          5.58  1.56x
huffman.txt:9:1e5         4.73  1.00x         11.64  2.46x
huffman.txt:9:1e6         3.28  1.00x         10.02  3.05x
twain.txt:1:1e4           5.33  1.00x          7.85  1.47x
twain.txt:1:1e5           5.92  1.00x         12.43  2.10x
twain.txt:1:1e6           7.06  1.00x         12.88  1.82x
twain.txt:6:1e4           4.70  1.00x          7.95  1.69x
twain.txt:6:1e5           5.52  1.00x         12.45  2.26x
twain.txt:6:1e6           5.70  1.00x         12.56  2.20x
twain.txt:9:1e4           4.22  1.00x          7.83  1.85x
twain.txt:9:1e5           6.09  1.00x         12.50  2.05x
twain.txt:9:1e6           5.50  1.00x         12.17  2.21x
binary.bin:1:1e4          7.03  1.00x          8.45  1.20x
binary.bin:1:1e5          8.50  1.00x         11.69  1.38x
binary.bin:1:1e6         10.32  1.00x         12.56  1.22x
binary.bin:6:1e4          6.01  1.00x          8.43  1.40x
binary.bin:6:1e5          8.50  1.00x         11.76  1.38x
binary.bin:6:1e6          9.60  1.00x         13.50  1.41x
binary.bin:9:1e4          5.48  1.00x          8.40  1.53x
binary.bin:9:1e5          8.60  1.00x         11.72  1.36x
binary.bin:9:1e6          8.90  1.00x         13.52  1.52x
random.bin:1:1e4          3.26  1.00x          3.88  1.19x
random.bin:1:1e5          3.32  1.00x          7.03  2.12x
random.bin:1:1e6          4.16  1.00x          7.26  1.75x
random.bin:6:1e4          2.86  1.00x          3.90  1.36x
random.bin:6:1e5          3.39  1.00x          7.09  2.09x
random.bin:6:1e6          3.33  1.00x          7.44  2.23x
random.bin:9:1e4          2.81  1.00x          3.86  1.38x
random.bin:9:1e5          3.67  1.00x          7.12  1.94x
random.bin:9:1e6          2.75  1.00x          7.07  2.57x
repeats.bin:1:1e4         5.53  1.00x          6.02  1.09x
repeats.bin:1:1e5         6.70  1.00x          9.46  1.41x
repeats.bin:1:1e6         7.62  1.00x          9.98  1.31x
repeats.bin:6:1e4         4.84  1.00x          6.00  1.24x
repeats.bin:6:1e5         6.88  1.00x          9.48  1.38x
repeats.bin:6:1e6         6.78  1.00x         10.35  1.53x
repeats.bin:9:1e4         4.50  1.00x          6.01  1.33x
repeats.bin:9:1e5         6.84  1.00x          9.53  1.39x
repeats.bin:9:1e6         5.98  1.00x         10.02  1.68x
zeros.bin:1:1e4          83.22  1.00x        116.87  1.40x
zeros.bin:1:1e5         179.31  1.00x        156.83  0.87x
zeros.bin:1:1e6         210.38  1.00x        115.62  0.55x
zeros.bin:6:1e4          29.26  1.00x         98.80  3.38x
zeros.bin:6:1e5         137.96  1.00x        155.78  1.13x
zeros.bin:6:1e6         188.73  1.00x        115.17  0.61x
zeros.bin:9:1e4          18.84  1.00x        106.09  5.63x
zeros.bin:9:1e5         118.96  1.00x        157.05  1.32x
zeros.bin:9:1e6         186.88  1.00x        115.46  0.62x

BZip2 decoding rate

benchmark              std MB/s  delta      ds MB/s   delta      cgo MB/s   delta
digits.txt:1:1e4          14.22  1.00x        21.10   1.48x         27.83   1.96x
digits.txt:1:1e5          17.06  1.00x        18.18   1.07x         26.64   1.56x
digits.txt:1:1e6          17.70  1.00x        23.34   1.32x         27.36   1.55x
digits.txt:6:1e4           6.02  1.00x        21.63   3.59x         28.31   4.70x
digits.txt:6:1e5          14.15  1.00x        18.30   1.29x         26.80   1.89x
digits.txt:6:1e6          16.97  1.00x        22.27   1.31x         24.63   1.45x
digits.txt:9:1e4           5.45  1.00x        21.40   3.93x         28.17   5.17x
digits.txt:9:1e5          13.88  1.00x        18.06   1.30x         26.79   1.93x
digits.txt:9:1e6          16.14  1.00x        19.68   1.22x         23.60   1.46x
huffman.txt:1:1e4          9.80  1.00x        19.81   2.02x         20.31   2.07x
huffman.txt:1:1e5         14.30  1.00x        18.53   1.30x         20.76   1.45x
huffman.txt:1:1e6         14.48  1.00x        24.48   1.69x         21.47   1.48x
huffman.txt:6:1e4          5.26  1.00x        19.57   3.72x         20.47   3.89x
huffman.txt:6:1e5         11.94  1.00x        18.55   1.55x         20.77   1.74x
huffman.txt:6:1e6         14.17  1.00x        22.08   1.56x         19.50   1.38x
huffman.txt:9:1e4          4.96  1.00x        20.12   4.06x         20.36   4.11x
huffman.txt:9:1e5         11.79  1.00x        18.66   1.58x         20.85   1.77x
huffman.txt:9:1e6         13.52  1.00x        20.06   1.48x         18.08   1.34x
twain.txt:1:1e4           13.12  1.00x        22.94   1.75x         27.24   2.08x
twain.txt:1:1e5           19.54  1.00x        21.65   1.11x         30.84   1.58x
twain.txt:1:1e6           20.27  1.00x        27.22   1.34x         31.83   1.57x
twain.txt:6:1e4            6.18  1.00x        22.83   3.70x         27.08   4.39x
twain.txt:6:1e5           16.26  1.00x        20.92   1.29x         31.00   1.91x
twain.txt:6:1e6           20.17  1.00x        27.19   1.35x         30.23   1.50x
twain.txt:9:1e4            5.37  1.00x        22.98   4.28x         27.67   5.15x
twain.txt:9:1e5           15.76  1.00x        21.16   1.34x         30.71   1.95x
twain.txt:9:1e6           19.69  1.00x        24.07   1.22x         28.84   1.46x
binary.bin:1:1e4          18.04  1.00x        31.70   1.76x         45.45   2.52x
binary.bin:1:1e5          31.59  1.00x        34.47   1.09x         56.36   1.78x
binary.bin:1:1e6          32.55  1.00x        42.13   1.29x         56.87   1.75x
binary.bin:6:1e4           6.60  1.00x        32.33   4.89x         46.76   7.08x
binary.bin:6:1e5          24.94  1.00x        34.02   1.36x         57.25   2.30x
binary.bin:6:1e6          33.43  1.00x        40.99   1.23x         52.78   1.58x
binary.bin:9:1e4           6.04  1.00x        32.62   5.40x         45.81   7.59x
binary.bin:9:1e5          23.61  1.00x        33.93   1.44x         56.80   2.41x
binary.bin:9:1e6          31.79  1.00x        38.01   1.20x         50.29   1.58x
random.bin:1:1e4           8.09  1.00x        18.24   2.25x         17.34   2.14x
random.bin:1:1e5          12.06  1.00x        16.52   1.37x         18.79   1.56x
random.bin:1:1e6          12.16  1.00x        21.49   1.77x         19.13   1.57x
random.bin:6:1e4           4.40  1.00x        17.87   4.06x         17.45   3.97x
random.bin:6:1e5          10.50  1.00x        16.48   1.57x         18.79   1.79x
random.bin:6:1e6          12.34  1.00x        20.58   1.67x         16.93   1.37x
random.bin:9:1e4           4.27  1.00x        18.53   4.34x         17.45   4.09x
random.bin:9:1e5          10.22  1.00x        16.73   1.64x         18.80   1.84x
random.bin:9:1e6          11.87  1.00x        18.04   1.52x         16.05   1.35x
repeats.bin:1:1e4         16.05  1.00x        32.71   2.04x         47.18   2.94x
repeats.bin:1:1e5         27.29  1.00x        31.27   1.15x         43.23   1.58x
repeats.bin:1:1e6         26.90  1.00x        36.21   1.35x         42.04   1.56x
repeats.bin:6:1e4          6.57  1.00x        32.92   5.01x         48.72   7.41x
repeats.bin:6:1e5         21.89  1.00x        31.03   1.42x         43.28   1.98x
repeats.bin:6:1e6         28.78  1.00x        36.32   1.26x         39.66   1.38x
repeats.bin:9:1e4          5.72  1.00x        33.11   5.79x         47.76   8.35x
repeats.bin:9:1e5         21.09  1.00x        30.90   1.46x         43.23   2.05x
repeats.bin:9:1e6         26.74  1.00x        33.03   1.24x         36.72   1.37x
zeros.bin:1:1e4           45.27  1.00x       166.58   3.68x        165.71   3.66x
zeros.bin:1:1e5          156.37  1.00x       262.24   1.68x        367.38   2.35x
zeros.bin:1:1e6          209.74  1.00x       281.38   1.34x        416.62   1.99x
zeros.bin:6:1e4           11.83  1.00x       169.02  14.29x        183.73  15.54x
zeros.bin:6:1e5           65.19  1.00x       261.63   4.01x        371.47   5.70x
zeros.bin:6:1e6          175.75  1.00x       279.45   1.59x        414.41   2.36x
zeros.bin:9:1e4            9.65  1.00x       167.23  17.32x        174.67  18.10x
zeros.bin:9:1e5           58.17  1.00x       262.99   4.52x        374.58   6.44x
zeros.bin:9:1e6          170.53  1.00x       283.57   1.66x        415.97   2.44x

BZip2 compression ratio

benchmark               ds ratio  delta      cgo ratio  delta
digits.txt:1:1e4           2.20x  1.00x          2.28x  1.04x
digits.txt:1:1e5           2.23x  1.00x          2.32x  1.04x
digits.txt:1:1e6           2.22x  1.00x          2.31x  1.04x
digits.txt:6:1e4           2.20x  1.00x          2.28x  1.04x
digits.txt:6:1e5           2.23x  1.00x          2.32x  1.04x
digits.txt:6:1e6           2.12x  1.00x          2.23x  1.05x
digits.txt:9:1e4           2.20x  1.00x          2.28x  1.04x
digits.txt:9:1e5           2.23x  1.00x          2.32x  1.04x
digits.txt:9:1e6           2.05x  1.00x          2.16x  1.05x
huffman.txt:1:1e4          1.15x  1.00x          1.23x  1.06x
huffman.txt:1:1e5          1.24x  1.00x          1.29x  1.04x
huffman.txt:1:1e6          1.23x  1.00x          1.29x  1.04x
huffman.txt:6:1e4          1.15x  1.00x          1.23x  1.06x
huffman.txt:6:1e5          1.24x  1.00x          1.29x  1.04x
huffman.txt:6:1e6          1.24x  1.00x          1.30x  1.04x
huffman.txt:9:1e4          1.15x  1.00x          1.23x  1.06x
huffman.txt:9:1e5          1.24x  1.00x          1.29x  1.04x
huffman.txt:9:1e6          1.24x  1.00x          1.29x  1.04x
twain.txt:1:1e4            2.07x  1.00x          2.25x  1.09x
twain.txt:1:1e5            2.68x  1.00x          2.90x  1.08x
twain.txt:1:1e6            2.68x  1.00x          2.89x  1.08x
twain.txt:6:1e4            2.07x  1.00x          2.25x  1.09x
twain.txt:6:1e5            2.68x  1.00x          2.90x  1.08x
twain.txt:6:1e6            2.87x  1.00x          3.12x  1.09x
twain.txt:9:1e4            2.07x  1.00x          2.25x  1.09x
twain.txt:9:1e5            2.68x  1.00x          2.90x  1.08x
twain.txt:9:1e6            2.87x  1.00x          3.12x  1.09x
binary.bin:1:1e4           4.16x  1.00x          4.71x  1.13x
binary.bin:1:1e5           5.72x  1.00x          6.37x  1.11x
binary.bin:1:1e6           5.29x  1.00x          5.82x  1.10x
binary.bin:6:1e4           4.16x  1.00x          4.71x  1.13x
binary.bin:6:1e5           5.78x  1.00x          6.43x  1.11x
binary.bin:6:1e6           5.54x  1.00x          5.98x  1.08x
binary.bin:9:1e4           4.16x  1.00x          4.71x  1.13x
binary.bin:9:1e5           5.78x  1.00x          6.43x  1.11x
binary.bin:9:1e6           5.42x  1.00x          5.85x  1.08x
random.bin:1:1e4           0.95x  1.00x          0.95x  1.01x
random.bin:1:1e5           0.98x  1.00x          0.99x  1.01x
random.bin:1:1e6           0.98x  1.00x          0.99x  1.01x
random.bin:6:1e4           0.95x  1.00x          0.95x  1.01x
random.bin:6:1e5           0.98x  1.00x          0.99x  1.01x
random.bin:6:1e6           0.98x  1.00x          0.99x  1.01x
random.bin:9:1e4           0.95x  1.00x          0.95x  1.01x
random.bin:9:1e5           0.98x  1.00x          0.99x  1.01x
random.bin:9:1e6           0.98x  1.00x          0.99x  1.01x
repeats.bin:1:1e4          2.88x  1.00x          4.71x  1.63x
repeats.bin:1:1e5          3.93x  1.00x          4.02x  1.02x
repeats.bin:1:1e6          3.59x  1.00x          3.67x  1.02x
repeats.bin:6:1e4          2.88x  1.00x          4.71x  1.63x
repeats.bin:6:1e5          3.93x  1.00x          4.02x  1.02x
repeats.bin:6:1e6          3.88x  1.00x          3.97x  1.02x
repeats.bin:9:1e4          2.88x  1.00x          4.71x  1.63x
repeats.bin:9:1e5          3.93x  1.00x          4.02x  1.02x
repeats.bin:9:1e6          3.85x  1.00x          3.95x  1.03x
zeros.bin:1:1e4          217.39x  1.00x        217.39x  1.00x
zeros.bin:1:1e5         2173.91x  1.00x       2127.66x  0.98x
zeros.bin:1:1e6        12195.12x  1.00x      12987.01x  1.06x
zeros.bin:6:1e4          217.39x  1.00x        217.39x  1.00x
zeros.bin:6:1e5         2173.91x  1.00x       2127.66x  0.98x
zeros.bin:6:1e6        12195.12x  1.00x      12987.01x  1.06x
zeros.bin:9:1e4          217.39x  1.00x        217.39x  1.00x
zeros.bin:9:1e5         2173.91x  1.00x       2127.66x  0.98x
zeros.bin:9:1e6        12195.12x  1.00x      12987.01x  1.06x

Deflate

Deflate encoding rate

NOTE: Compressor not yet implemented.

Deflate decoding rate

benchmark              std MB/s  delta      ds MB/s  delta      cgo MB/s  delta
digits.txt:1:1e4          58.83  1.00x        94.97  1.61x        180.20  3.06x
digits.txt:1:1e5          65.82  1.00x       103.03  1.57x        185.26  2.81x
digits.txt:1:1e6          68.02  1.00x       105.43  1.55x        193.44  2.84x
digits.txt:6:1e4          58.36  1.00x        94.07  1.61x        174.21  2.99x
digits.txt:6:1e5          68.25  1.00x       105.71  1.55x        187.67  2.75x
digits.txt:6:1e6          68.65  1.00x       108.43  1.58x        188.05  2.74x
digits.txt:9:1e4          58.21  1.00x        93.87  1.61x        172.65  2.97x
digits.txt:9:1e5          68.22  1.00x       105.62  1.55x        187.17  2.74x
digits.txt:9:1e6          68.75  1.00x       108.61  1.58x        188.13  2.74x
huffman.txt:1:1e4         46.84  1.00x        99.36  2.12x        176.20  3.76x
huffman.txt:1:1e5         54.18  1.00x       129.91  2.40x        240.67  4.44x
huffman.txt:1:1e6         53.48  1.00x       135.95  2.54x        250.30  4.68x
huffman.txt:6:1e4         46.06  1.00x        97.07  2.11x        178.13  3.87x
huffman.txt:6:1e5         53.11  1.00x       120.20  2.26x        231.78  4.36x
huffman.txt:6:1e6         54.02  1.00x       123.42  2.28x        223.02  4.13x
huffman.txt:9:1e4         43.48  1.00x        97.18  2.23x        174.94  4.02x
huffman.txt:9:1e5         53.38  1.00x       119.80  2.24x        233.26  4.37x
huffman.txt:9:1e6         54.07  1.00x       125.23  2.32x        241.98  4.48x
twain.txt:1:1e4           55.99  1.00x        89.57  1.60x        164.47  2.94x
twain.txt:1:1e5           70.90  1.00x       109.10  1.54x        186.99  2.64x
twain.txt:1:1e6           72.62  1.00x       113.56  1.56x        191.32  2.63x
twain.txt:6:1e4           58.78  1.00x        95.85  1.63x        168.47  2.87x
twain.txt:6:1e5           82.11  1.00x       130.00  1.58x        210.00  2.56x
twain.txt:6:1e6           85.76  1.00x       138.46  1.61x        216.61  2.53x
twain.txt:9:1e4           59.32  1.00x        95.22  1.61x        169.53  2.86x
twain.txt:9:1e5           82.51  1.00x       131.64  1.60x        210.53  2.55x
twain.txt:9:1e6           85.89  1.00x       138.46  1.61x        217.92  2.54x
binary.bin:1:1e4         108.61  1.00x       172.40  1.59x        295.23  2.72x
binary.bin:1:1e5         150.22  1.00x       227.42  1.51x        378.92  2.52x
binary.bin:1:1e6         147.95  1.00x       239.21  1.62x        369.99  2.50x
binary.bin:6:1e4         116.36  1.00x       183.72  1.58x        326.56  2.81x
binary.bin:6:1e5         178.30  1.00x       276.50  1.55x        434.98  2.44x
binary.bin:6:1e6         182.73  1.00x       302.40  1.65x        438.18  2.40x
binary.bin:9:1e4         115.99  1.00x       191.78  1.65x        332.13  2.86x
binary.bin:9:1e5         179.07  1.00x       277.89  1.55x        435.35  2.43x
binary.bin:9:1e6         186.17  1.00x       308.52  1.66x        448.09  2.41x
random.bin:1:1e4         385.63  1.00x       573.04  1.49x        712.34  1.85x
random.bin:1:1e5        3207.52  1.00x      2410.21  0.75x       3849.84  1.20x
random.bin:1:1e6        8170.59  1.00x      6210.27  0.76x       6136.79  0.75x
random.bin:6:1e4         389.96  1.00x       576.34  1.48x        709.53  1.82x
random.bin:6:1e5        3100.79  1.00x      2182.93  0.70x       3787.58  1.22x
random.bin:6:1e6        7355.26  1.00x      4617.63  0.63x       5756.05  0.78x
random.bin:9:1e4         389.64  1.00x       601.33  1.54x        746.17  1.92x
random.bin:9:1e5        3124.06  1.00x      2290.41  0.73x       3717.37  1.19x
random.bin:9:1e6        7182.71  1.00x      4632.25  0.64x       5811.68  0.81x
repeats.bin:1:1e4        147.07  1.00x       203.35  1.38x        382.57  2.60x
repeats.bin:1:1e5        179.15  1.00x       318.43  1.78x        510.25  2.85x
repeats.bin:1:1e6        180.71  1.00x       365.64  2.02x        558.81  3.09x
repeats.bin:6:1e4        230.21  1.00x       430.16  1.87x        480.73  2.09x
repeats.bin:6:1e5        244.58  1.00x       458.94  1.88x        720.27  2.94x
repeats.bin:6:1e6        258.80  1.00x       544.16  2.10x        769.54  2.97x
repeats.bin:9:1e4        222.83  1.00x       438.26  1.97x        486.47  2.18x
repeats.bin:9:1e5        245.40  1.00x       463.13  1.89x        720.83  2.94x
repeats.bin:9:1e6        260.88  1.00x       549.00  2.10x        777.74  2.98x
zeros.bin:1:1e4          363.29  1.00x       467.37  1.29x        353.88  0.97x
zeros.bin:1:1e5         1687.77  1.00x      1557.00  0.92x        594.91  0.35x
zeros.bin:1:1e6         2328.92  1.00x      2314.24  0.99x        655.41  0.28x
zeros.bin:6:1e4          356.96  1.00x       470.53  1.32x        361.69  1.01x
zeros.bin:6:1e5         1798.65  1.00x      1641.06  0.91x        595.01  0.33x
zeros.bin:6:1e6         2604.16  1.00x      2712.43  1.04x        662.69  0.25x
zeros.bin:9:1e4          363.31  1.00x       463.22  1.27x        358.60  0.99x
zeros.bin:9:1e5         1742.92  1.00x      1663.13  0.95x        601.04  0.34x
zeros.bin:9:1e6         2575.60  1.00x      2713.15  1.05x        664.47  0.26x

Deflate compression ratio

NOTE: Compressor not yet implemented.