I see. It would be nice to have a function, call it timings_graph() or something, that acts similar to the timed() function. You just pass it some lists of source code that you want to plot (or maybe multiple lists for multiple lines), a list of x-axis values, and other information like axes labels, and it would just create a plot like this. It would be great way to look at asymptotic behavior and to compare multiple implementations. We could put it in utilities/timeutils.py. It would be useful to me to compare risch_integrate() and integrate(), for example.
Aaron Meurer On Jun 2, 2011, at 8:40 PM, Mateusz Paprocki wrote: > Hi, > > On 3 June 2011 01:15, Aaron S. Meurer <[email protected]> wrote: > > In [1] you will find a very simple comparison of Integer, int and mpz. This > > applies to the rational case as well, just the difference is even bigger. > > Did you make those graphs manually, or do you have some program that > automates it? It would be nice to have something that can make timing graphs > like that with very little work. > > It's semi-automated. You can find source code here: > > https://github.com/mattpap/masters-thesis/blob/master/bench/bench.py > > > Aaron Meurer > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > > Mateusz > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
