summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2020-10-04 05:05:59 +0000
committermef <mef@pkgsrc.org>2020-10-04 05:05:59 +0000
commit1def34ba8a766848f36e737f35595188d833daa4 (patch)
treeed50b259794ee403449455afcb0f1f9016333e04 /benchmarks
parent685af76f2e6e0af5ac0e25374a6a05d5e46c5e8f (diff)
downloadpkgsrc-1def34ba8a766848f36e737f35595188d833daa4.tar.gz
benchmarks/R-rbenchmark: import R-rbenchmark-1.0.0
rbenchmark is inspired by the Perl module Benchmark, and is intended to facilitate benchmarking of arbitrary R code. The library consists of just one function, benchmark, which is a simple wrapper around system.time. Given a specification of the benchmarking process (counts of replications, evaluation environment) and an arbitrary number of expressions, benchmark evaluates each of the expressions in the specified environment, replicating the evaluation as many times as specified, and returning the results conveniently wrapped into a data frame.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/R-rbenchmark/DESCR9
-rw-r--r--benchmarks/R-rbenchmark/Makefile15
-rw-r--r--benchmarks/R-rbenchmark/distinfo6
3 files changed, 30 insertions, 0 deletions
diff --git a/benchmarks/R-rbenchmark/DESCR b/benchmarks/R-rbenchmark/DESCR
new file mode 100644
index 00000000000..ab80ea27542
--- /dev/null
+++ b/benchmarks/R-rbenchmark/DESCR
@@ -0,0 +1,9 @@
+rbenchmark is inspired by the Perl module Benchmark, and is intended
+to facilitate benchmarking of arbitrary R code. The library consists
+of just one function, benchmark, which is a simple wrapper around
+system.time. Given a specification of the benchmarking process
+(counts of replications, evaluation environment) and an arbitrary
+number of expressions, benchmark evaluates each of the expressions in
+the specified environment, replicating the evaluation as many times as
+specified, and returning the results conveniently wrapped into a data
+frame.
diff --git a/benchmarks/R-rbenchmark/Makefile b/benchmarks/R-rbenchmark/Makefile
new file mode 100644
index 00000000000..16109e7d024
--- /dev/null
+++ b/benchmarks/R-rbenchmark/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2020/10/04 05:05:59 mef Exp $
+
+R_PKGNAME= rbenchmark
+R_PKGVER= 1.0.0
+CATEGORIES= benchmarks
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Benchmarking routine for R
+HOMEPAGE= https://cran.r-project.org/web/packages/rbenchmark/
+LICENSE= gnu-gpl-v2 OR gnu-gpl-v3
+
+USE_LANGUAGES= # none
+
+.include "../../math/R/Makefile.extension"
+.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/R-rbenchmark/distinfo b/benchmarks/R-rbenchmark/distinfo
new file mode 100644
index 00000000000..8171907816f
--- /dev/null
+++ b/benchmarks/R-rbenchmark/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/10/04 05:05:59 mef Exp $
+
+SHA1 (R/rbenchmark_1.0.0.tar.gz) = ebeec0b8ce6b43c89ee552aba488cfe0f59d1cce
+RMD160 (R/rbenchmark_1.0.0.tar.gz) = ba93ce5349c17ec6883b6985f4b648e0c62edb6d
+SHA512 (R/rbenchmark_1.0.0.tar.gz) = 3857df545cf37246aa80de061ff62544a6114cfc73ae66bfac7d8a78fc32d45e08b70648edea528cca4db0ef4b351f9f71bedfc64a7d8f3ecbd423848a715a7f
+Size (R/rbenchmark_1.0.0.tar.gz) = 5093 bytes