Add a port of lzbench, an in-memory benchmark of open-source LZ77/LZSS/LZMA

compressors.  It joins all compressors into a single executable.  At the
beginning, an input file is read to memory.  Then all compressors are used
to compress and decompress the file and decompressed file is verified.

WWW: https://github.com/inikep/lzbench
Add a port of libdeflate, a library for fast, whole-buffer DEFLATE-based
compression and decompression.

WWW: https://github.com/ebiggers/libdeflate

Because GitHub releases (tarballs) are not fetched with correct modification
time, set TIMESTAMP to 1515146810 which corresponds to commit 6c4ad37 tagged
as this release.
This commit is contained in:
Alexey Dokuchaev 2018-01-15 07:05:53 +00:00
parent a15e60cfd1
commit 4612d2325f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459019
4 changed files with 46 additions and 0 deletions

View file

@ -38,6 +38,7 @@
SUBDIR += iperf3
SUBDIR += libmicro
SUBDIR += lmbench
SUBDIR += lzbench
SUBDIR += mdtest
SUBDIR += nbench
SUBDIR += netio

View file

@ -0,0 +1,32 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= lzbench
PORTVERSION= 1.7.3
DISTVERSIONPREFIX= v
CATEGORIES= benchmarks
MAINTAINER= danfe@FreeBSD.org
COMMENT= In-memory benchmark of open-source LZ77/LZSS/LZMA compressors
USES= compiler:c11 gmake
USE_GITHUB= yes
GH_ACCOUNT= inikep
PLIST_FILES= bin/lzbench
PORTDOCS= NEWS
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/PROGOS/s,Linux,${OPSYS},' \
${WRKSRC}/_lzbench/lzbench.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lzbench ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1515146810
SHA256 (inikep-lzbench-v1.7.3_GH0.tar.gz) = 71308d03b3a1e00ac4852bc8ca0ec45540144b1de232db3dd4880cecd1b07e36
SIZE (inikep-lzbench-v1.7.3_GH0.tar.gz) = 2365027

View file

@ -0,0 +1,10 @@
lzbench is an in-memory benchmark of open-source LZ77/LZSS/LZMA compressors.
It joins all compressors into a single executable. At the beginning, an
input file is read to memory. Then all compressors are used to compress
and decompress the file and decompressed file is verified.
This approach has a big advantage of using the same compiler with the same
optimizations for all compressors. The disadvantage is that it requires
source code of each compressor (therefore Slug or lzturbo are not included).
WWW: https://github.com/inikep/lzbench