Skip to content

Commit 02c2769

Browse files
use N to vary test size
1 parent a06dcf9 commit 02c2769

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.ci/atime/tests.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,12 @@ test.list <- atime::atime_test_list(
253253

254254
# Test case created directly using the atime code below (not adapted from any other benchmark), based on the PR Removes unnecessary data.table call from as.data.table.array https://github.com/Rdatatable/data.table/pull/7010
255255
"as.data.table.array improved in #7010" = atime::atime_test(
256+
N = 1:5,
256257
setup = {
257-
dims = c(50, 50, 300, 10)
258-
arr = array(1:prod(dims), dim = dims)
258+
dims = N * c(10L, 10L, 60L, 2L)
259+
arr = array(seq_len(prod(dims)), dim=dims)
259260
},
260-
expr = data.table:::as.data.table(arr),
261+
expr = data.table::as.data.table(arr),
261262
Slow = "73d79edf8ff8c55163e90631072192301056e336", # Parent of the first commit https://github.com/Rdatatable/data.table/tree/73d79edf8ff8c55163e90631072192301056e336
262263
Fast = "8397dc3c993b61a07a81c786ca68c22bc589befc"), # Merge commit of the PR (https://github.com/Rdatatable/data.table/pull/5054) that fixes the issue
263264

0 commit comments

Comments
 (0)