Skip to content

Commit 4626377

Browse files
committed
fix: correct perf test function calls for batch 4
1 parent dc138b5 commit 4626377

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

tests/testthat/test-perf-ds.c.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.c("D$LAB_TSC", "D$LAB_TRIG", newobj="c.newobj")
21+
ds.c(x=c("D$LAB_TSC", "D$LAB_TRIG"), newobj="c.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.rbind.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.rbind(x="D", y="D", newobj="rbind.newobj")
21+
ds.rbind(x=c("D", "D"), newobj="rbind.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.rep.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.rep(x1=5, times1=10, newobj="rep.newobj")
21+
ds.rep(x1=5, times=10, newobj="rep.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.replaceNA.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.replaceNA(x="D$LAB_TSC", forNA=0, newobj="replace.newobj")
21+
ds.replaceNA(x="D$LAB_TSC", forNA=c(999, 999, 999), newobj="replace.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.unList.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))
1212

1313
# context("ds.unList::perf::0")
1414
test_that("performance", {
15+
ds.asList("D$LAB_TSC", newobj="list.newobj")
1516
.durationSec <- 30 # seconds
1617
.count <- 0
1718
.start.time <- Sys.time()

0 commit comments

Comments
 (0)