Benchmarktools explanation for dummies

benchmarktools

#1

Can someone explain what memory allocs estimate physically mean and how it differs from memory estimate in BenchmarkTools package in Julia?


#2

Can you give an example of what you’re asking about?


#3

bec


#4

“memory estimate” is BenchmarkTools’ estimate of how much cumulative memory allocation the operation you are benchmarking performs—in this case 4.46×2^20 bytes. “allocs estimate” is the estimated number of allocations done by the operation you are benchmarking—in this case 13. So the 4.46×2^20 bytes were allocated in 13 separate chunks of various sizes.


#5

Ty!