Execution time test

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)

Too many questions and not all related to the title.
To benchmark functions use BenchmarkTools.jl and to time internal sections of functions you can use the masterpiece code: 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.

1 Like