-
Notifications
You must be signed in to change notification settings - Fork 0
Profiling
Letícia Maria Pequeno Madureira edited this page Aug 14, 2024
·
2 revisions
The profiling technique involves the mapping of memory usage and allocations in the code. Instructions to profile this code are:
using Profile
@profile myfunc()
And to save such results in a file, we have:
open("/Users/leticiamadureira/OohataHuzinaga.jl/benchmarking/profile_08142024_1033AM.res", "w") do s
Profile.print(IOContext(s, :displaysize => (24, 500)))
end
This is the change on the BasisSets.jl package
julia> @benchmark parsebasis(mol, "6-21g")
BenchmarkTools.Trial: 132 samples with 1 evaluation.
Range (min … max): 26.997 ms … 129.966 ms ┊ GC (min … max): 0.00% … 0.00%
Time (median): 35.509 ms ┊ GC (median): 0.00%
Time (mean ± σ): 38.202 ms ± 11.909 ms ┊ GC (mean ± σ): 0.00% ± 0.00%
▁ ▁ █ ▆
▃▄█▅█▇█▅███▄█▄▄▃▄▃▃▃▃▃▁▃▁▁▁▃▁▃▁▃▃▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃ ▃
27 ms Histogram: frequency by time 87.5 ms <
Memory estimate: 114.91 KiB, allocs estimate: 1232.