#7571: use more dicts in graph.py
----------------------------+-----------------------------------------------
   Reporter:  ylchapuy      |       Owner:  rlm               
       Type:  enhancement   |      Status:  positive_review   
   Priority:  minor         |   Milestone:  sage-4.3          
  Component:  graph theory  |    Keywords:                    
Work_issues:                |      Author:  Yann Laigle-Chapuy
   Upstream:  N/A           |    Reviewer:                    
     Merged:                |  
----------------------------+-----------------------------------------------

Comment(by ylchapuy):

 that's true, benchmarks are not very convincing. Here are new ones:

 before:
 {{{
 sage: set_random_seed(42)
 sage: g=graphs.RandomGNP(20000,.00005)
 sage: time g.girth()
 CPU times: user 17.55 s, sys: 0.07 s, total: 17.62 s
 Wall time: 17.83 s
 16
 sage: time g.connected_components_number()
 CPU times: user 8.40 s, sys: 0.08 s, total: 8.48 s
 Wall time: 8.72 s
 9810
 sage: set_random_seed(42)
 sage: g=graphs.RandomGNP(10000,.005)
 sage: time b=g.blocks_and_cut_vertices()
 CPU times: user 17.19 s, sys: 0.44 s, total: 17.63 s
 Wall time: 17.98 s
 }}}

 after:
 {{{
 sage: set_random_seed(42)
 sage: g=graphs.RandomGNP(20000,.00005)
 sage: time g.girth()
 CPU times: user 2.15 s, sys: 0.00 s, total: 2.16 s
 Wall time: 2.15 s
 16
 sage: time g.connected_components_number()
 CPU times: user 0.32 s, sys: 0.00 s, total: 0.32 s
 Wall time: 0.32 s
 9810
 sage: set_random_seed(42)
 sage: g=graphs.RandomGNP(10000,.005)
 sage: time b=g.blocks_and_cut_vertices()
 CPU times: user 10.22 s, sys: 0.04 s, total: 10.27 s
 Wall time: 10.57 s
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7571#comment:4>
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