Run benchmarks macros.
More...
Go to the source code of this file.
Run benchmarks macros.
5 ROOT.SetSignalPolicy( ROOT.kSignalFast )
9 'framework.py',
'hsimple.py',
'hsum.py',
'formula1.py',
10 'fillrandom.py',
'fit1.py',
'h1draw.py',
'graph.py',
11 'gerrors.py',
'tornado.py',
'surfaces.py',
'zdemo.py',
12 'geometry.py',
'na49view.py',
'file.py',
13 'ntuple1.py',
'rootmarks.py' ]
16 def bexec( dir, macro, bench ):
17 if ROOT.gROOT.IsBatch():
18 print 'Processing benchmark: %s\n' % macro
20 summary = bench.GetPrimitive(
'TPave' )
21 tmacro = summary.GetLineWith( macro )
23 tmacro.SetTextColor( 4 )
27 execfile( os.path.join( macrodir, macro ), sys.modules[ __name__ ].__dict__ )
29 summary2 = bench.GetPrimitive(
'TPave' )
30 tmacro2 = summary2.GetLineWith( macro )
32 tmacro2.SetTextColor( 2 )
38 if __name__ ==
'__main__':
42 macrodir = os.path.dirname( os.path.join( os.getcwd(), __file__ ) )
47 bench = ROOT.TCanvas(
'bench',
'Benchmarks Summary', -1000, 50, 200, 500 )
48 summary = ROOT.TPaveText( 0, 0, 1, 1 )
49 summary.SetTextAlign( 12 )
50 summary.SetTextSize( 0.1 )
54 summary.AddText(
' ** %s' % m )
58 bexec( macrodir, m, bench )
- Author
- Wim Lavrijsen
Definition in file benchmarks.py.