This macro run several tests and produces an benchmark report.
hsimple : Real Time = 0.08 seconds Cpu Time = 0.08 seconds
(TFile *) 0x5634caea5a10
TFile** /home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master.build/tutorials/hsimple.root Demo ROOT file with histograms
TFile* /home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master.build/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
---------------ROOT 6.35.01 benchmarks summary--------------------
hsimple : Real Time = 0.08 seconds Cpu Time = 0.08 seconds
TOTAL : Real Time = 0.08 seconds Cpu Time = 0.08 seconds
---------------ROOT 6.35.01 benchmarks summary (in ROOTMARKS)-----
For comparison, a Pentium IV 2.4Ghz is benchmarked at 600 ROOTMARKS
hsimple = 2073.28 RealMARKS, = 2100.00 CpuMARKS
****************************************************
* Your machine is estimated at 24486.81 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,200,500);
summary->
AddText(
" graphics/framework.C");
summary->
AddText(
" graphics/formula1.C");
summary->
AddText(
" hist/fillrandom.C");
summary->
AddText(
" hist/h1ReadAndDraw.C");
summary->
AddText(
" graphs/graph.C");
summary->
AddText(
" graphs/gerrors.C");
summary->
AddText(
" graphics/tornado.C");
summary->
AddText(
" graphs/surfaces.C");
summary->
AddText(
" graphs/zdemo.C");
summary->
AddText(
" geom/geometry.C");
summary->
AddText(
" geom/na49view.C");
summary->
AddText(
" tree/ntuple1.C");
bexec(dir,"graphics/framework.C");
bexec(dir,"hsimple.C");
bexec(dir,"hist/hsum.C");
bexec(dir,"graphics/formula1.C");
bexec(dir,"hist/fillrandom.C");
bexec(dir,"fit/fit1.C");
bexec(dir,"hist/h1ReadAndDraw.C");
bexec(dir,"graphs/graph.C");
bexec(dir,"graphs/gerrors.C");
bexec(dir,"graphics/tornado.C");
bexec(dir,"graphs/surfaces.C");
bexec(dir,"graphs/zdemo.C");
bexec(dir,"geom/geometry.C");
bexec(dir,"geom/na49view.C");
bexec(dir,"tree/ntuple1.C");
bexec(dir,"legacy/rootmarks.C");
}
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
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.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
void Draw(Option_t *option="") override
Draw this pavetext with its current attributes.
virtual TText * GetLineWith(const char *text) const
Get Pointer to first containing string text in this pavetext.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
Base class for several text objects.
- Author
- Rene Brun
Definition in file benchmarks.C.