I think if you made the buffered content big enoug...
# kotlintest
w
I think if you made the buffered content big enough it’d make sense to use
System.gc()
to trigger gc and
Runtime.getRuntime().run { totalMemory() - freeMemory() }
to calculate free memory. I’d imagine with non-buffered 5MB content and buffered 5MB content it’d be possible to figure out a deterministic threshold