Skip to content

Commit cfeaf56

Browse files
Merge pull request datashield#534 from datashield/v6.4.0-dev
Update with changes to v6.4.0-dev
2 parents d1e7748 + 59fd13b commit cfeaf56

5 files changed

Lines changed: 185 additions & 1 deletion

File tree

tests/docker/armadillo/standard/config/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ logging:
6868
level:
6969
root: INFO
7070
## change to DEBUG to have more details, typically when developing
71-
org.molgenis: DEBUG
71+
org.molgenis: INFO
7272
## Don't log upload data
7373
org.apache.coyote.http11.Http11InputBuffer: INFO

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#-------------------------------------------------------------------------------
2+
# Copyright (c) 2024 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
3+
#
4+
# This program and the accompanying materials
5+
# are made available under the terms of the GNU Public License v3.0.
6+
#
7+
# You should have received a copy of the GNU General Public License
8+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
9+
#-------------------------------------------------------------------------------
10+
11+
#
12+
# Set up
13+
#
14+
15+
context("ds.abs::perf::setup")
16+
connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))
17+
18+
#
19+
# Tests
20+
#
21+
22+
context("ds.abs::perf:0")
23+
test_that("combine - performance", {
24+
.durationSec <- 30 # seconds
25+
.count <- 0
26+
.start.time <- Sys.time()
27+
.current.time <- .start.time
28+
29+
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
30+
ds.abs("D$LAB_TSC", newobj = "abs.newobj")
31+
32+
.count <- .count + 1
33+
.current.time <- Sys.time()
34+
}
35+
expect_true(TRUE)
36+
37+
print(paste("ds.abs::perf::0:", format(.count / (difftime(.current.time, .start.time, units = "secs")[[1]]), digits = 8)))
38+
})
39+
40+
#
41+
# Done
42+
#
43+
44+
context("ds.abs::perf::shutdown")
45+
disconnect.studies.dataset.cnsim()
46+
context("ds.abs::perf::done")
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#-------------------------------------------------------------------------------
2+
# Copyright (c) 2024 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
3+
#
4+
# This program and the accompanying materials
5+
# are made available under the terms of the GNU Public License v3.0.
6+
#
7+
# You should have received a copy of the GNU General Public License
8+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
9+
#-------------------------------------------------------------------------------
10+
11+
#
12+
# Set up
13+
#
14+
15+
context("ds.asList::perf::setup")
16+
connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))
17+
18+
#
19+
# Tests
20+
#
21+
22+
context("ds.asList::perf:0")
23+
test_that("combine - performance", {
24+
.durationSec <- 30 # seconds
25+
.count <- 0
26+
.start.time <- Sys.time()
27+
.current.time <- .start.time
28+
29+
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
30+
ds.asList("D$LAB_TSC", newobj = "asList.newobj")
31+
32+
.count <- .count + 1
33+
.current.time <- Sys.time()
34+
}
35+
expect_true(TRUE)
36+
37+
print(paste("ds.asList::perf::0:", format(.count / (difftime(.current.time, .start.time, units = "secs")[[1]]), digits = 8)))
38+
})
39+
40+
#
41+
# Done
42+
#
43+
44+
context("ds.asList::perf::shutdown")
45+
disconnect.studies.dataset.cnsim()
46+
context("ds.asList::perf::done")
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#-------------------------------------------------------------------------------
2+
# Copyright (c) 2024 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
3+
#
4+
# This program and the accompanying materials
5+
# are made available under the terms of the GNU Public License v3.0.
6+
#
7+
# You should have received a copy of the GNU General Public License
8+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
9+
#-------------------------------------------------------------------------------
10+
11+
#
12+
# Set up
13+
#
14+
15+
context("ds.asNumeric::perf::setup")
16+
connect.studies.dataset.cnsim(list("GENDER"))
17+
18+
#
19+
# Tests
20+
#
21+
22+
context("ds.asNumeric::perf:0")
23+
test_that("combine - performance", {
24+
.durationSec <- 30 # seconds
25+
.count <- 0
26+
.start.time <- Sys.time()
27+
.current.time <- .start.time
28+
29+
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
30+
ds.asNumeric("D$GENDER", newobj = "asNumeric.newobj")
31+
32+
.count <- .count + 1
33+
.current.time <- Sys.time()
34+
}
35+
expect_true(TRUE)
36+
37+
print(paste("ds.asNumeric::perf::0:", format(.count / (difftime(.current.time, .start.time, units = "secs")[[1]]), digits = 8)))
38+
})
39+
40+
#
41+
# Done
42+
#
43+
44+
context("ds.asNumeric::perf::shutdown")
45+
disconnect.studies.dataset.cnsim()
46+
context("ds.asNumeric::perf::done")
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#-------------------------------------------------------------------------------
2+
# Copyright (c) 2024 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
3+
#
4+
# This program and the accompanying materials
5+
# are made available under the terms of the GNU Public License v3.0.
6+
#
7+
# You should have received a copy of the GNU General Public License
8+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
9+
#-------------------------------------------------------------------------------
10+
11+
#
12+
# Set up
13+
#
14+
15+
context("ds.assign::perf::setup")
16+
connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))
17+
18+
#
19+
# Tests
20+
#
21+
22+
context("ds.assign::perf::0")
23+
test_that("performance", {
24+
.durationSec <- 30 # seconds
25+
.count <- 0
26+
.start.time <- Sys.time()
27+
.current.time <- .start.time
28+
29+
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
30+
ds.assign("D$LAB_TSC", newobj = "assign.newobj")
31+
32+
.count <- .count + 1
33+
.current.time <- Sys.time()
34+
}
35+
expect_true(TRUE)
36+
37+
print(paste("ds.assign::perf::0:", format(.count / (difftime(.current.time, .start.time, units = "secs")[[1]]), digits = 8)))
38+
})
39+
40+
#
41+
# Done
42+
#
43+
44+
context("ds.assign::perf::shutdown")
45+
disconnect.studies.dataset.cnsim()
46+
context("ds.assign::perf::done")

0 commit comments

Comments
 (0)