# Execution time test

**URL:** <https://discourse.julialang.org/t/execution-time-test/73753>\
**Category:** General Usage\
**Tags:** question, benchmarktools\
**Created:** [December 29, 2021, 1:34pm UTC](https://discourse.julialang.org/t/execution-time-test/73753 "2021-12-29T13:34:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XLVII](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xlvii/32/37099_2.png) [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Post date:** [December 29, 2021, 1:34pm UTC](https://discourse.julialang.org/t/execution-time-test/73753/1 "2021-12-29T13:34:31Z")

</div>

I have two function: Let’s say

1. Funtion()
2. Faster\_Function()

their outputs are the same but their order is different, I want to test their speed and accuracy, how can I do this?

I also need features such as writing outputs to a file, drawing graphs.

Note: the outputs are polytopes, and if sorting them by their dimesions, I still get different lists(is there any solution, any sorting algo)

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [December 29, 2021, 3:47pm UTC](https://discourse.julialang.org/t/execution-time-test/73753/2 "2021-12-29T15:47:33Z")

</div>

Too many questions and not all related to the title.  
To benchmark functions use [BenchmarkTools.jl](https://juliaci.github.io/BenchmarkTools.jl/stable/) and to time internal sections of functions you can use the masterpiece code: [TimerOutputs.jl](https://github.com/KristofferC/TimerOutputs.jl)

For the other questions, there are many solutions here in Discourse, try them first, if stuck then post some code and you will get better help.
