-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Thanks for developing this @tpq, I've been using it to benchmark a package I'm developing against a current one. One question though - does peakRAM work for loops? I'm trying to understand why these two calls give different outputs.
mem <- peakRAM({
for(i in 1:10) {
mean(rnorm(1e6))
}
})
mem$Peak_RAM_Used_MiB # 10008235
mem <- peakRAM({
for(i in 1:5) {
mean(rnorm(1e6))
}
})
mem$Peak_RAM_Used_MiB # 5006635, shouldn't this be the same?
Metadata
Metadata
Assignees
Labels
No labels