Skip to content
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

transpose benchmark #15

Open
tdhock opened this issue Dec 18, 2023 · 1 comment
Open

transpose benchmark #15

tdhock opened this issue Dec 18, 2023 · 1 comment

Comments

@tdhock
Copy link
Owner

tdhock commented Dec 18, 2023

Rdatatable/data.table#5805 (comment)

@tdhock
Copy link
Owner Author

tdhock commented Dec 18, 2023

atime.result <- atime::atime(
  N=10^seq(1, 9, by=0.5),
  setup={
    set.seed(1)
    l = list(sample(N), sample(letters, N, TRUE))
  },
  base = lapply(seq(length(l[[1]])), function(x) lapply(l, `[[`, x)),
  dt = data.table::transpose(l, list.cols=TRUE),
  seconds.limit=1
)
atime.refs <- atime::references_best(atime.result)
plot(atime.refs)
atime.pred <- predict(atime.refs, seconds=1, kilobytes=1000)
plot(atime.pred)

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant