From owner-svn-ports-head@freebsd.org Mon Jan 15 07:05:54 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCBCBEB41D1; Mon, 15 Jan 2018 07:05:54 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B86E183396; Mon, 15 Jan 2018 07:05:54 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 030F358CA; Mon, 15 Jan 2018 07:05:54 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0F75rCD001021; Mon, 15 Jan 2018 07:05:53 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0F75r9C001017; Mon, 15 Jan 2018 07:05:53 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201801150705.w0F75r9C001017@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Mon, 15 Jan 2018 07:05:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459019 - in head/benchmarks: . lzbench X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/benchmarks: . lzbench X-SVN-Commit-Revision: 459019 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 07:05:55 -0000 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 +# $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 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