Date: Mon, 15 Jan 2018 07:05:53 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459019 - in head/benchmarks: . lzbench Message-ID: <201801150705.w0F75r9C001017@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Mon Jan 15 07:05:53 2018 New Revision: 459019 URL: https://svnweb.freebsd.org/changeset/ports/459019 Log: 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. Added: head/benchmarks/lzbench/ head/benchmarks/lzbench/Makefile (contents, props changed) head/benchmarks/lzbench/distinfo (contents, props changed) head/benchmarks/lzbench/pkg-descr (contents, props changed) Modified: head/benchmarks/Makefile Modified: head/benchmarks/Makefile ============================================================================== --- head/benchmarks/Makefile Mon Jan 15 05:40:13 2018 (r459018) +++ head/benchmarks/Makefile Mon Jan 15 07:05:53 2018 (r459019) @@ -38,6 +38,7 @@ SUBDIR += iperf3 SUBDIR += libmicro SUBDIR += lmbench + SUBDIR += lzbench SUBDIR += mdtest SUBDIR += nbench SUBDIR += netio Added: head/benchmarks/lzbench/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/lzbench/Makefile Mon Jan 15 07:05:53 2018 (r459019) @@ -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> Added: head/benchmarks/lzbench/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/lzbench/distinfo Mon Jan 15 07:05:53 2018 (r459019) @@ -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 Added: head/benchmarks/lzbench/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/lzbench/pkg-descr Mon Jan 15 07:05:53 2018 (r459019) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801150705.w0F75r9C001017>