]> git.ipfire.org Git - thirdparty/zstd.git/commit
Modify benchmark to only load sources once
authorYann Collet <yann.collet.73@gmail.com>
Tue, 22 Oct 2024 09:18:48 +0000 (02:18 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Tue, 22 Oct 2024 09:18:48 +0000 (02:18 -0700)
commit0079d515b1673a7deba3dfa46204a1af61d81dce
treee0acecb7020be1eb46e6068fe0e951bc025628d1
parentb880f20d52a925ebee373b5050c206ba325d935d
Modify benchmark to only load sources once

After a regrettable update,
the benchmark module ended up reloading sources for every compression level.

While the delay itself is likely torelable,
the main issue is that the `--quiet` mode now also displays a loading summary between each compression line.
This wasn't the original intention, which is to produce a compact view of all compressions.

This is fixed in this version,
where sources are loaded only once, for all compression levels,
and loading summary is only displayed once.
programs/benchzstd.c
programs/benchzstd.h
programs/zstdcli.c