~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/time_graph.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-19 17:53:37 UTC
  • mto: This revision was merged to the branch mainline in revision 4466.
  • Revision ID: john@arbash-meinel.com-20090619175337-uozt3bntdd48lh4z
Update time_graph to use X:1 ratios rather than 0.xxx ratios.
It is just easier to track now that the new code is much faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
if opts.quick:
107
107
    if known_python['heads'] != known_pyrex['heads']:
108
108
        import pdb; pdb.set_trace()
109
 
    print 'ratio: %.3fs' % (known_pyrex['elapsed'] / known_python['elapsed'])
 
109
    print 'ratio: %.1f:1 faster' % (
 
110
        known_python['elapsed'] / known_pyrex['elapsed'],)
110
111
else:
111
112
    orig = combi_graph(_simple_graph, combinations)
112
113
    report('Orig', orig)
114
115
    if orig['heads'] != known_pyrex['heads']:
115
116
        import pdb; pdb.set_trace()
116
117
 
117
 
    print 'ratio: %.3fs' % (known_pyrex['elapsed'] / orig['elapsed'])
 
118
    print 'ratio: %.1f:1 faster' % (
 
119
        orig['elapsed'] / known_pyrex['elapsed'],)