diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 1c2dc63ad114..8adc930b9aec 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -1,114 +1,115 @@ COMMENT = Benchmarking tools SUBDIR += ali SUBDIR += apib SUBDIR += autobench SUBDIR += blogbench SUBDIR += bombardier SUBDIR += bonnie SUBDIR += bonnie++ SUBDIR += clpeak SUBDIR += cpipe SUBDIR += dbench SUBDIR += dbs SUBDIR += dhrystone SUBDIR += dkftpbench SUBDIR += fhourstones SUBDIR += filebench SUBDIR += fio SUBDIR += flamegraph SUBDIR += flops SUBDIR += flowgrind SUBDIR += forkbomb SUBDIR += glmark2 SUBDIR += gtkperf SUBDIR += hey SUBDIR += himenobench SUBDIR += hipercontracer SUBDIR += hpl SUBDIR += httperf SUBDIR += hyperfine SUBDIR += imb SUBDIR += inferno SUBDIR += interbench SUBDIR += iorate SUBDIR += iozone SUBDIR += iozone21 SUBDIR += iperf SUBDIR += iperf3 SUBDIR += kdiskmark SUBDIR += libcelero SUBDIR += libmicro SUBDIR += linux-gputest SUBDIR += linux-unigine-heaven SUBDIR += linux-unigine-sanctuary SUBDIR += linux-unigine-tropics SUBDIR += linux-unigine-valley SUBDIR += linux-vdbench SUBDIR += lmbench SUBDIR += lzbench SUBDIR += mangohud SUBDIR += mdtest SUBDIR += mst-bench SUBDIR += nbench SUBDIR += netio SUBDIR += netperf SUBDIR += netperfmeter SUBDIR += nosqlbench SUBDIR += nqueens SUBDIR += nttcp SUBDIR += nuttcp SUBDIR += octave-forge-benchmark SUBDIR += p5-Benchmark-Forking SUBDIR += p5-Benchmark-Stopwatch SUBDIR += p5-Dumbbench SUBDIR += pathchirp SUBDIR += pathload SUBDIR += pathrate SUBDIR += pear-Benchmark SUBDIR += perftest SUBDIR += phoronix-test-suite SUBDIR += pipebench SUBDIR += polygraph SUBDIR += postal SUBDIR += postmark SUBDIR += py-locust SUBDIR += py-naarad SUBDIR += py-throughpy SUBDIR += py-zopkio SUBDIR += raidtest SUBDIR += ramspeed SUBDIR += randomio SUBDIR += rubygem-benchmark SUBDIR += rubygem-benchmark-ips SUBDIR += rubygem-benchmark-memory SUBDIR += rubygem-derailed_benchmarks SUBDIR += rubygem-gitlab-derailed_benchmarks SUBDIR += rubygem-railsbench SUBDIR += scimark2 SUBDIR += scimark2c + SUBDIR += scimark4c SUBDIR += shellbench SUBDIR += siege SUBDIR += sipp SUBDIR += slowloris SUBDIR += smhasher SUBDIR += spp SUBDIR += stream SUBDIR += stress-ng SUBDIR += super-smack SUBDIR += sysbench SUBDIR += tcpblast SUBDIR += thrulay SUBDIR += tsung SUBDIR += ttcp SUBDIR += typometer SUBDIR += ubench SUBDIR += unixbench SUBDIR += uperf SUBDIR += vegeta SUBDIR += vkmark SUBDIR += vkpeak SUBDIR += webbench SUBDIR += wrk .include diff --git a/benchmarks/scimark4c/Makefile b/benchmarks/scimark4c/Makefile new file mode 100644 index 000000000000..56278b060372 --- /dev/null +++ b/benchmarks/scimark4c/Makefile @@ -0,0 +1,22 @@ +# Created by: thierry@pompo.net + +PORTNAME= scimark4c +PORTVERSION= 4 +CATEGORIES= benchmarks +MASTER_SITES= http://math.nist.gov/scimark2/ +DISTNAME= ${PORTNAME} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= ANSI C version of the SciMark2 benchmark + +LICENSE= PD + +USES= zip + +WRKSRC= ${WRKDIR}/${PORTNAME:C/4c/4/} +PLIST_FILES= bin/scimark4 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/scimark4 ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/benchmarks/scimark4c/distinfo b/benchmarks/scimark4c/distinfo new file mode 100644 index 000000000000..58d5ee3888dc --- /dev/null +++ b/benchmarks/scimark4c/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654017050 +SHA256 (scimark4c.zip) = 91c839bca629d01efe6c2fc298530efed330c5ff6aea7bee16fd2f452cb731b1 +SIZE (scimark4c.zip) = 17348 diff --git a/benchmarks/scimark4c/files/patch-Makefile b/benchmarks/scimark4c/files/patch-Makefile new file mode 100644 index 000000000000..600224ab9225 --- /dev/null +++ b/benchmarks/scimark4c/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig 2018-06-22 16:46:28 UTC ++++ Makefile +@@ -6,19 +6,19 @@ + all: scimark4 + + +-CC = icc +-CFLAGS = -O3 -fno-alias -parallel -par-num-threads=4 ++#CC = icc ++#CFLAGS = -O3 -fno-alias -parallel -par-num-threads=4 + + +-CC = gcc +-CC = cc +-LDFLAGS = +-CFLAGS = -O3 -funroll-all-loops -mtune=prescott +-CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto +-CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto +-CFLAGS = -O3 -funroll-loops -Wall -pedantic -flto +-CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -ansi +-CFLAGS = -O3 -funroll-loops -Wall -pedantic -ansi ++#CC = gcc ++#CC = cc ++#LDFLAGS = ++#CFLAGS = -O3 -funroll-all-loops -mtune=prescott ++#CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto ++#CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -flto ++#CFLAGS = -O3 -funroll-loops -Wall -pedantic -flto ++#CFLAGS = -O3 -funroll-all-loops -Wall -pedantic -ansi ++#CFLAGS = -O3 -funroll-loops -Wall -pedantic -ansi + + OBJS = FFT.o kernel.o Stopwatch.o Random.o SOR.o SparseCompRow.o \ + array.o MonteCarlo.o LU.o scimark4.o diff --git a/benchmarks/scimark4c/files/patch-scimark4.c b/benchmarks/scimark4c/files/patch-scimark4.c new file mode 100644 index 000000000000..5b78988b55f9 --- /dev/null +++ b/benchmarks/scimark4c/files/patch-scimark4.c @@ -0,0 +1,11 @@ +--- scimark4.c.orig 2018-07-29 20:02:32 UTC ++++ scimark4.c +@@ -106,7 +106,7 @@ int main(int argc, char *argv[]) + + + print_banner(); +- printf("Using %10.2f seconds min time per kenel.", min_time); ++ printf("Using %10.2f seconds min time per kernel.", min_time); + if (huge_flag) + { + printf(" Approx. problem size: %d (MB)", atoi(argv[2])); diff --git a/benchmarks/scimark4c/pkg-descr b/benchmarks/scimark4c/pkg-descr new file mode 100644 index 000000000000..37712f8a9742 --- /dev/null +++ b/benchmarks/scimark4c/pkg-descr @@ -0,0 +1,10 @@ +This is an ANSI C version of the SciMark2 benchmark, translated from the +original Java sources. The intent in making this benchmark available in +C is mainly for performance comparisons. + +Version 4.0 of the software has added check-sum counters to adequately test +newer optimizing compilers. + +Results of this benchmark can be sent to pozo@nist.gov. + +WWW: https://math.nist.gov/scimark2/download_c.html diff --git a/benchmarks/scimark4c/pkg-message b/benchmarks/scimark4c/pkg-message new file mode 100644 index 000000000000..f4e9d8779df2 --- /dev/null +++ b/benchmarks/scimark4c/pkg-message @@ -0,0 +1,12 @@ +[ +{ type: install + message: <