You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be the intended behavior, but I’ve noticed that when running multiple benchmarks in a loop, the data of the variables that are interpolated into the benchmark accumulates until the system eventually runs out of memory. A simplified demonstration of this behavior:
functionbmk()
a =zeros(128*1024*1024) # 1GB
b =@benchmarkable$a .+=1run(b)
end
Repeated calls of this function each increase the memory usage of the Julia process by 1GB. My actual usage where I ran into this issue was a bit more complex, where I wanted to measure the performance of some of my functions for different problem sizes, including sizes that take up a major part of the system’s memory.
If this is the intended behavior, would it be possible to document it in the section about interpolated variables? And are there any workarounds other than starting a new Julia process for each problem size?
The text was updated successfully, but these errors were encountered:
This might be the intended behavior, but I’ve noticed that when running multiple benchmarks in a loop, the data of the variables that are interpolated into the benchmark accumulates until the system eventually runs out of memory. A simplified demonstration of this behavior:
Repeated calls of this function each increase the memory usage of the Julia process by 1GB. My actual usage where I ran into this issue was a bit more complex, where I wanted to measure the performance of some of my functions for different problem sizes, including sizes that take up a major part of the system’s memory.
If this is the intended behavior, would it be possible to document it in the section about interpolated variables? And are there any workarounds other than starting a new Julia process for each problem size?
The text was updated successfully, but these errors were encountered: