Skip to content

Commit 5ef3bd1

Browse files
author
Toby Dylan Hocking
committed
perf test sort_by
1 parent 7920cad commit 5ef3bd1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.ci/atime/tests.R

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,25 @@ test.list <- atime::atime_test_list(
131131
paste0('useDynLib(', new.Package_))
132132
},
133133

134+
# New sort_by.data.table method implemented https://github.com/Rdatatable/data.table/pull/6679
135+
# Test case adapted from https://github.com/Rdatatable/data.table/issues/6662#issue-2737165196
136+
"sort_by.data.table created in #6679" = atime::atime_test(
137+
seconds.limit=0.1,
138+
Fast="ee44ef45814115003d1499284227af6f5e487ad3",# Last commit in the PR (https://github.com/Rdatatable/data.table/pull/6679/commits) that implemented the new feature.
139+
Slow="4a2474b59637aad9e032b1eaee6e9bdcfc4df949",# Parent of the first commit (https://github.com/Rdatatable/data.table/commit/60828522cb1dbf696ce32a7323464d9d8870b9f6) in the PR (https://github.com/Rdatatable/data.table/pull/6679/commits) that implemented the new feature.
140+
expr={
141+
sort_by_lang <- str2lang("data.table:::sort_by.data.table")
142+
tryCatch(eval(sort_by_lang), error=function(e){
143+
sort_by_lang <<- str2lang("sort_by.data.frame")
144+
})
145+
my_call <- substitute(FUN(DT, ~ x + y), list(FUN=sort_by_lang))
146+
eval(my_call)
147+
},
148+
setup={
149+
set.seed(1234)
150+
DT <- data.table(x=runif(N),y=runif(N))
151+
}),
152+
134153
# Constant overhead improvement https://github.com/Rdatatable/data.table/pull/6925
135154
# Test case adapted from https://github.com/Rdatatable/data.table/pull/7022#discussion_r2107900643
136155
"fread disk overhead improved in #6925" = atime::atime_test(

0 commit comments

Comments
 (0)