Compress-Zstd

 view release on metacpan or  search on metacpan

ext/zstd/contrib/adaptive-compression/README.md  view on Meta::CPAN


`-p`     : hide progress bar

`-q`     : quiet mode -- do not show progress bar or other information

`-l#`    : set a lower bound on the compression level (default is 1)

`-u#`    : set an upper bound on the compression level (default is 22)
### Benchmarking / Test results
#### Artificial Tests
These artificial tests were run by using the `pv` command line utility in order to limit pipe speeds (25 MB/s read and 5 MB/s write limits were chosen to mimic severe throughput constraints). A 40 GB backup file was sent through a pipeline, compresse...

<table>
<tr><th> 25 MB/s read limit </th></tr>
<tr><td>

| Compressor Name | Ratio | Compressed Size | Compression Time |
|:----------------|------:|----------------:|-----------------:| 
| zstd -3         | 2.108 |       20.718 GB |      29m 48.530s |
| zstd-adaptive   | 2.230 |       19.581 GB |      29m 48.798s |

ext/zstd/contrib/adaptive-compression/README.md  view on Meta::CPAN

</table>

The commands used for this test generally followed the form:

`cat FILE | pv -L 25m -q | COMPRESSION | pv -q > tmp.zst # impose 25 MB/s read limit`

`cat FILE | pv -q | COMPRESSION | pv -L 5m -q > tmp.zst  # impose 5 MB/s write limit`

#### SSH Tests

The following tests were performed by piping a relatively large backup file (approximately 80 GB) through compression and over SSH to be stored on a server. The test data includes statistics for time and compressed size  on `zstd` at several compress...
pipe throughput.

| Compressor Name | Ratio | Compressed Size | Compression Time |
|:----------------|------:|----------------:|-----------------:|
| zstd -3         | 2.212 |       32.426 GB |   1h 17m 59.756s |
| zstd -15        | 2.374 |       30.213 GB |   2h 56m 59.441s |
| zstd-adaptive   | 2.315 |       30.993 GB |   1h 18m 52.860s |

The commands used for this test generally followed the form: 

ppport.h  view on Meta::CPAN

av_pop|5.003007|5.003007|
av_push|5.003007|5.003007|
av_reify|5.004004||cViu
av_shift|5.003007|5.003007|
av_store|5.003007|5.003007|
av_tindex|5.017009|5.003007|p
av_top_index|5.017009|5.003007|p
av_undef|5.003007|5.003007|
av_unshift|5.003007|5.003007|
ax|5.003007|5.003007|
backup_one_GCB|5.025003||Viu
backup_one_LB|5.023007||Viu
backup_one_SB|5.021009||Viu
backup_one_WB|5.021009||Viu
bad_type_gv|5.019002||Viu
bad_type_pv|5.016000||Viu
BhkDISABLE|||x
BhkENABLE|||x
BhkENTRY_set|||x
BhkENTRY|||xi
BhkFLAGS|||xi
BIN|5.003007|5.003007|
bind_match|5.003007||Viu
block_end|5.004000|5.004000|



( run in 1.206 second using v1.01-cache-2.11-cpan-49f99fa48dc )