Skip to content

Commit bc8a8be

Browse files
committed
allow loop over various R builds
1 parent 7c76529 commit bc8a8be

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

R/benchmark.data.table.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ benchmark.data.table = function(script="benchmarks.Rraw", rbin="Rscript", desc=c
1010
ths = ths[ths>0L]
1111
cat("benchmark.data.table() running: ", names(fn), "\n", sep="")
1212
init = proc.time()[[3L]]
13-
for (lib in libs) {
14-
for (th in ths) {
15-
cmd = sprintf("R_LIBS_USER=%s R_DATATABLE_NUM_THREADS=%s R_DATATABLE_NUM_PROCS_PERCENT=100 %s %s%s", lib, th, rbin, fn, desc)
16-
cat(cmd,"\n",sep="")
17-
system(cmd)
13+
for (bin in rbin) {
14+
for (lib in libs) {
15+
for (th in ths) {
16+
cmd = sprintf("R_LIBS_USER=%s R_DATATABLE_NUM_THREADS=%s R_DATATABLE_NUM_PROCS_PERCENT=100 %s %s%s", lib, th, bin, fn, desc)
17+
cat(cmd,"\n",sep="")
18+
system(cmd)
19+
}
1820
}
1921
}
2022
t = proc.time()[[3L]]

0 commit comments

Comments
 (0)