Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TimerOutputsComparisons

[![Build Status](https://github.com/johnomotani/TimerOutputsComparisons.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/johnomotani/TimerOutputsComparisons.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Build Status](https://github.com/johnomotani/TimerOutputComparisons.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/johnomotani/TimerOutputComparisons.jl/actions/workflows/CI.yml?query=branch%3Amain)

Provides some helper functions to save/load TimerOutput objects, and plot
comparisons of them. This may be useful to compare performance with different
Expand Down Expand Up @@ -38,3 +38,18 @@ each timer can be plotted with `averages=true`. For example
compare_timers(["foo$dt.jld" for dt ∈ delay_times]...; include=:time,
legend=false, averages=true)
```

Example output
--------------

Below is the output from comparing runs of a parallelised matrix solver code on
different numbers of cores, using
```julia
julia> using TimerOutputComparisons, TimerOutputs

julia> compare_timers("timing-1-1.jld", "timing-2-2.jld", "timing-4-4.jld", "timing-8-8.jld", "timing-16-16.jld"; use_data=:time, legend=false, averages=true, root="Static condensation ldiv! 16641")
```
where the legend is suppressed because there are too many entries - the curves
can still be identified using the tooltip that appears when hovering the cursor
over the curve.
![Example of plot produced by TimerOutputComparisons.jl](doc/example-scaling-performance.png)
Binary file added doc/example-scaling-performance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.