-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add some new "status quo" atime tests for common operations #4517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jangorecki
wants to merge
21
commits into
master
Choose a base branch
from
benchmark
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+33
−0
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
50e61e0
build and install stuff
jangorecki 1c7e6c4
rename to cc
jangorecki 4421958
initial internal framework for benchmarking
jangorecki 3a55ef0
forder benchmark
jangorecki ea15862
always run many threads
jangorecki b0db59c
automate cflags
jangorecki 7c76529
minor improvements
jangorecki bc8a8be
allow loop over various R builds
jangorecki 7870a50
Merge branch 'master' into benchmark
jangorecki a3500bd
simplify benchmarks
jangorecki d40f0cb
remove unused anymore
jangorecki bea4feb
reduce diff
jangorecki 4fe8676
roadmap for more checks
jangorecki 39843be
fix coverage
jangorecki 8ff16c9
Merge branch 'master' into benchmark
MichaelChirico 9e871d4
Convert a few to atime tests
MichaelChirico 97c6ff4
revert
MichaelChirico 3b29aa7
missing ','
MichaelChirico 319280b
bad copy-paste
MichaelChirico 73efaf3
missing 'data.table::'
MichaelChirico 5e36044
Merge branch 'master' into benchmark
ben-schwen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -445,6 +445,39 @@ test.list <- atime::atime_test_list( | |
| Fast = "ed2df986da6d3a4ff35bec1b0f75db2b767e3eb2", # Merge commit of the PR that uses a much faster implementation | ||
| expr = data.table::isoweek(x)), | ||
|
|
||
| "GForce aggregation (benchmark across # rows)" = atime::atime_test( | ||
| setup = { | ||
| set.seed(34893) | ||
| DT = data.table(grp = sample.int(10L, N, TRUE), v=rnorm(N), i=sample(N), vna=rnorm(N)) | ||
| DT[1:3, vna := NA_real_] | ||
| }, | ||
| expr = data.table:::`[.data.table`(DT, j=.(mean(v), sum(v), mean(i), sum(i), mean(vna, na.rm=TRUE), sum(vna, na.rm=TRUE))), | ||
| `Status quo` = "8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0"), # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0) | ||
|
|
||
| "GForce aggregation (benchmark across # groups)" = atime::atime_test( | ||
| setup = { | ||
| set.seed(34893) | ||
| DT = data.table(grp = sample.int(1e7, N, TRUE), v=rnorm(1e7), i=sample(1e7), vna=rnorm(N)) | ||
| }, | ||
| expr = data.table:::`[.data.table`(DT, j=.(mean(v), sum(v), mean(i), sum(i), mean(vna, na.rm=TRUE), sum(vna, na.rm=TRUE))), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| `Status quo` = "8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0"), # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0) | ||
|
|
||
| "Serial value setting with :=" = atime::atime_test( | ||
| setup = { | ||
| set.seed(34893) | ||
| DT = data.table(i=N:1) | ||
| }, | ||
| expr = for (ii in seq_len(nrow(DT))) data.table:::`[.data.table`(DT, ii, `:=`(i, ii)), | ||
| `Status quo` = "8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0"), # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0) | ||
|
|
||
| "Serial value setting with set" = atime::atime_test( | ||
| setup = { | ||
| set.seed(34893) | ||
| DT = data.table(i=N:1) | ||
| }, | ||
| expr = for (ii in seq_len(nrow(DT))) data.table::set(DT, ii, "i", ii), | ||
| `Status quo` = "8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0"), # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/8f5ffa8bb8f3f5861020a6e32f897c30e42eeab0) | ||
|
|
||
| # Regression introduced by https://github.com/Rdatatable/data.table/pull/6890 and discussed in https://github.com/Rdatatable/data.table/issues/7404 (grouped by factor). | ||
| "DT[by] max regression fixed in #7480" = atime::atime_test( | ||
| setup = { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't we need a by for GForce to kick in?