Skip to content

Commit b249f1b

Browse files
author
Toby Dylan Hocking
committed
frollapply test
1 parent 73b00b3 commit b249f1b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.ci/atime/tests.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,20 @@ test.list <- atime::atime_test_list(
143143
Slow = "e25ea80b793165094cea87d946d2bab5628f70a6" # Parent of the first commit (https://github.com/Rdatatable/data.table/commit/60a01fa65191c44d7997de1843e9a1dfe5be9f72)
144144
),
145145

146+
# Performance test based on system.time() code from https://github.com/Rdatatable/data.table/pull/7272#issue-3368806267
147+
"frollapply improved in #7272" = atime::atime_test(
148+
N=as.integer(10^seq(2, 7, by=0.2)),
149+
setup={
150+
set.seed(108)
151+
setDTthreads(4)
152+
x = rnorm(N)
153+
},
154+
seconds.limit=0.1,
155+
expr=data.table::frollapply(x, as.integer(N/10), median),
156+
Slow="8647d44646426d9045696890378c64f5dd239b07", # Parent of the first commit (https://github.com/Rdatatable/data.table/commit/996bce96c3c0e2920ae89af70e7258caf77340f6) in the PR (https://github.com/Rdatatable/data.table/pull/7272/commits)
157+
Fast="73b00b3ceefd4d1bd683ab197ec7e09a4e2a2039" # Most recent commit in the PR when performance test was created on 2025-09-05.
158+
),
159+
146160
# Performance regression discussed in https://github.com/Rdatatable/data.table/issues/4311
147161
# Test case adapted from https://github.com/Rdatatable/data.table/pull/4440#issuecomment-632842980 which is the fix PR.
148162
"shallow regression fixed in #4440" = atime::atime_test(

0 commit comments

Comments
 (0)