-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Other timing tools #78
Comments
I used For example, for Zygote: Running
Details│ Precompile Deactivated Benchmark
# for using Zygote:
└ Inference time (ms): 23654.842
@timev result (This has some noise).
391.374697 seconds (628.72 M allocations: 31.522 GiB, 4.16% gc time)
elapsed time (ns): 391374697041
gc time (ns): 16295209095
bytes allocated: 33846029551
pool allocs: 628513544
non-pool GC allocs:190530
malloc() calls: 11983
realloc() calls: 85
GC pauses: 503
full collections: 9 │ Precompile Activated Benchmark
┌ Info:
└ Inference time (ms): 22565.431
@timev result (This has some noise).
382.785964 seconds (605.11 M allocations: 30.360 GiB, 3.93% gc time)
elapsed time (ns): 382785964109
gc time (ns): 15042733929
bytes allocated: 32598547445
pool allocs: 604912736
non-pool GC allocs:184276
malloc() calls: 11737
realloc() calls: 81
GC pauses: 467
full collections: 6 https://github.com/aminya/Zygote.jl/runs/646094164?check_suite_focus=true#step:6:123 |
If this is the case, should I just use julia_code_timev = """
using $package_name
@timev begin
$(string(snoop_script));
end
@info("The above is @timev result (This has some noise).")
"""
julia_cmd_timev = `julia --project=@. -e $julia_code_timev` |
In general I worry that too many people use SnoopCompile unthinkingly; for me, the "discovery" part is by far the most important and I generally prefer to write the precompile file by hand. But I recognize I'm probably an outlier. Recommending |
People are less concerned with the precompiling time, but with its effect on the performance. Using |
Is there any other timing measure that shows the effect of using precompiles (in a dynamic manner without sysimage) other than what we have in
@snoopi
andsnoopi_bot
?Is
@timev
a good measure?The text was updated successfully, but these errors were encountered: