This macro run several tests and produces an benchmark report.
(TFile *) 0x55651f449360
Formula based function: sqroot
sqroot : x*gaus(0) + [3]*form1 Ndim= 1, Npar= 4, Number= 0
Formula expression:
x*[p0]*exp(-0.5*((x-[p1])/[p2])*((x-[p1])/[p2]))+[p3]*(abs(sin(x)/x))
****************************************
Minimizer is Minuit2 / Migrad
Chi2 = 202.552
NDf = 188
Edm = 2.91887e-08
NCalls = 149
p0 = 32.6905 +/- 0.533225
p1 = 3.97178 +/- 0.0177951
p2 = 1.0081 +/- 0.0133754
p3 = 63.3732 +/- 1.33997
TFile** /usr/share/root/tutorials/hsimple.root Demo ROOT file with histograms
TFile* /usr/share/root/tutorials/hsimple.root Demo ROOT file with histograms
KEY: TH1F hpx;1 This is the px distribution
KEY: TH2F hpxpy;1 py vs px
KEY: TProfile hprof;1 Profile of pz versus px
KEY: TNtuple ntuple;1 Demo ntuple
i 0 0.000000 1.986693
i 1 0.100000 2.955202
i 2 0.200000 3.894183
i 3 0.300000 4.794255
i 4 0.400000 5.646425
i 5 0.500000 6.442177
i 6 0.600000 7.173561
i 7 0.700000 7.833269
i 8 0.800000 8.414710
i 9 0.900000 8.912074
i 10 1.000000 9.320391
i 11 1.100000 9.635582
i 12 1.200000 9.854497
i 13 1.300000 9.974950
i 14 1.400000 9.995736
i 15 1.500000 9.916648
i 16 1.600000 9.738476
i 17 1.700000 9.463001
i 18 1.800000 9.092974
i 19 1.900000 8.632094
i 0 -3.000000 -0.989992
i 1 -2.684211 -0.897212
i 2 -2.368421 -0.715699
i 3 -2.052632 -0.463406
i 4 -1.736842 -0.165284
i 5 -1.421053 0.149185
i 6 -1.105263 0.448899
i 7 -0.789474 0.704219
i 8 -0.473684 0.889894
i 9 -0.157895 0.987561
i 10 0.157895 0.987561
i 11 0.473684 0.889894
i 12 0.789474 0.704219
i 13 1.105263 0.448899
i 14 1.421053 0.149185
i 15 1.736842 -0.165284
i 16 2.052632 -0.463406
i 17 2.368421 -0.715699
i 18 2.684211 -0.897212
i 19 3.000000 -0.989992
tornado : Real Time = 0.00 seconds Cpu Time = 0.00 seconds
na49 : Real Time = 0.01 seconds Cpu Time = 0.01 seconds
geometry : Real Time = 0.03 seconds Cpu Time = 0.02 seconds
na49view : Real Time = 0.00 seconds Cpu Time = 0.00 seconds
****************************************
Minimizer is Linear / Migrad
Chi2 = 16.5378
NDf = 68
p0 = 1.04821 +/- 0.226552
p1 = 0.0133784 +/- 0.0420448
p2 = 0.956034 +/- 0.0245116
ntuple1 : Real Time = 0.09 seconds Cpu Time = 0.09 seconds
---------------ROOT 6.39.01 benchmarks summary--------------------
tornado : Real Time = 0.00 seconds Cpu Time = 0.00 seconds
na49 : Real Time = 0.01 seconds Cpu Time = 0.01 seconds
geometry : Real Time = 0.03 seconds Cpu Time = 0.02 seconds
na49view : Real Time = 0.00 seconds Cpu Time = 0.00 seconds
ntuple1 : Real Time = 0.09 seconds Cpu Time = 0.09 seconds
TOTAL : Real Time = 0.13 seconds Cpu Time = 0.12 seconds
---------------ROOT 6.39.01 benchmarks summary (in ROOTMARKS)-----
For comparison, a Pentium IV 2.4Ghz is benchmarked at 600 ROOTMARKS
tornado = 50071.28 RealMARKS, = inf CpuMARKS
na49 = 136541.22 RealMARKS, = 83400.00 CpuMARKS
geometry = 4405.98 RealMARKS, = 5400.00 CpuMARKS
na49view = 4730.42 RealMARKS, = inf CpuMARKS
ntuple1 = 1907.35 RealMARKS, = 1800.00 CpuMARKS
****************************************************
* Your machine is estimated at 16210.84 ROOTMARKS *
****************************************************
void bexec(
TString &dir,
const char *macro)
{
if (
gROOT->IsBatch()) printf(
"Processing benchmark: %s%s\n",dir.
Data(),macro);
}
void benchmarks() {
bench1 =
new TCanvas(
"bench1",
"Benchmarks Summary",-1000,50,250,500);
summary->
AddText(
" visualisation/graphics/framework.C");
summary->
AddText(
" hist/hist007_TH1_liveupdate.C");
summary->
AddText(
" visualisation/graphics/formula1.C");
summary->
AddText(
" hist/hist001_TH1_fillrandom.C");
summary->
AddText(
" math/fit/fit1.C");
summary->
AddText(
" hist/hist015_TH1_read_and_draw.C");
summary->
AddText(
" visualisation/graphs/gr001_simple.C");
summary->
AddText(
" visualisation/graphs/gr002_errors.C");
summary->
AddText(
" visualisation/graphics/tornado.C");
summary->
AddText(
" visualisation/graphics/surfaces.C");
summary->
AddText(
" visualisation/graphs/gr303_zdemo.C");
summary->
AddText(
" legacy/g3d/geometry.C");
summary->
AddText(
" legacy/g3d/na49view.C");
summary->
AddText(
" io/tree/tree120_ntuple.C");
bexec(dir,"visualisation/graphics/framework.C");
bexec(dir,"hsimple.C");
bexec(dir,"hist/hist007_TH1_liveupdate.C");
bexec(dir,"visualisation/graphics/formula1.C");
bexec(dir,"hist/hist001_TH1_fillrandom.C");
bexec(dir,"math/fit/fit1.C");
bexec(dir,"hist/hist015_TH1_read_and_draw.C");
bexec(dir,"visualisation/graphs/gr001_simple.C");
bexec(dir,"visualisation/graphs/gr002_errors.C");
bexec(dir,"visualisation/graphics/tornado.C");
bexec(dir,"visualisation/graphics/surfaces.C");
bexec(dir,"visualisation/graphs/gr303_zdemo.C");
bexec(dir,"legacy/g3d/geometry.C");
bexec(dir,"legacy/g3d/na49view.C");
bexec(dir,"io/tree/tree120_ntuple.C");
bexec(dir,"legacy/rootmarks.C");
}
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
void Update() override
Update canvas pad buffers.
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
TObject * GetPrimitive(const char *name) const override
Get primitive.
void Draw(Option_t *option="") override
Draw this pave with its current attributes.
virtual TText * GetLineWith(const char *text) const
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)