#13361: Report startuptime exclusive children
--------------------------------+-------------------------------------------
       Reporter:  vbraun        |         Owner:  tbd         
           Type:  enhancement   |        Status:  needs_review
       Priority:  major         |     Milestone:  sage-5.3    
      Component:  performance   |    Resolution:              
       Keywords:                |   Work issues:              
Report Upstream:  N/A           |     Reviewers:              
        Authors:  Volker Braun  |     Merged in:              
   Dependencies:                |      Stopgaps:              
--------------------------------+-------------------------------------------

Old description:

> Right now `sage -startuptime` reports startup time including children.
> This isn't particularly useful since that just means that the first
> module (which loads most of sage as dependencies) is the slowest. The
> more meaningful number is exclusive children, which can tell us if the
> module does computations during initialization.
>
> Apply [attachment:trac_13361_startuptime.patch] to the scripts
> (`SAGE_LOCAL/bin`) repository.

New description:

 Right now `sage -startuptime` reports startup time including children.
 This isn't particularly useful since that just means that the first module
 (which loads most of sage as dependencies) is the slowest. The more
 meaningful number is exclusive children, which can tell us if the module
 does computations during initialization.

 * Apply [attachment:trac_13361_startuptime.patch] to the scripts
 (`SAGE_LOCAL/bin`) repository.
 * Apply [attachment:trac_13361_startuptime_args.patch] to the root
 repository.

--

Comment (by vbraun):

 Now with disabled garbage collector (it did skew timings) and with
 optional argument a module that you want to know more about:
 {{{
 [vbraun@laptop sage]$ sage -startuptime sage.geometry.fan

 ========================================================================
 == Slowest modules imported by sage.geometry.fan =======================
 exclude/ms include/ms   #parents  module name
      0.114     51.802          3  sage.geometry.all
      0.220      0.240          1  sage.schemes.toric.library
      0.353      0.414          1
 sage.geometry.triangulation.fan_refinement
      0.404      0.492          2  sage.geometry.fan_morphism
      0.688      0.962          3  sage.schemes.toric.variety

 == Slowest modules importing sage.geometry.fan =========================
 exclude/ms include/ms   #parents  module name
      0.526      2.551         19  collections
      0.607    139.657         51  sage.misc.all
      0.617     67.490          5  sage.combinat.posets.posets
      0.770      2.764          4  sage.geometry.lattice_polytope
      0.779     49.771          5  sage.geometry.cone
      1.123      1.126        175  sage.misc.abstract_method
      1.243      1.243        180  sage.misc.lazy_attribute
      1.284     66.645        230  sage.rings.all
      1.350      1.350         63  copy
      3.897      5.520        218  sage.misc.sageinspect

 == module sage.geometry.fan ============================================
 Time to import:  0.760ms
 Cumulative time: 0.835ms
 Names: fan, sage.geometry.fan
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13361#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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/sage-trac?hl=en.

Reply via email to