This macro run several tests and produces an benchmark report.
Processing /builddir/build/BUILD/root-6.08.02/tutorials/benchmarks.C...
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphics/framework.C
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/hsimple.C
hsimple : Real
Time = 0.12 seconds Cpu
Time = 0.11 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/hist/hsum.C
hsum : Real
Time = 0.04 seconds Cpu
Time = 0.04 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphics/formula1.C
class cnt on heap size
total size heap size
================================================================================
TList 134 134 80 10720 10720
--------------------------------------------------------------------------------
Total: 296 295 1864 27000 26336
================================================================================
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/hist/fillrandom.C
fillrandom: Real
Time = 0.09 seconds Cpu
Time = 0.08 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/fit/fit1.C
KEY:
TF1 sqroot;1
x*gaus(0) + [3]*form1
KEY:
TH1F h1f;1 Test random numbers
Formula based function: sqroot
sqroot :
x*gaus(0) + [3]*form1 Ndim= 1, Npar= 4, Number= 0
Formula expression:
FCN=221.728 FROM MIGRAD STATUS=CONVERGED 127 CALLS 128 TOTAL
EDM=2.78521
e-09 STRATEGY= 1
ERROR MATRIX UNCERTAINTY 2.5 per cent
EXT PARAMETER STEP FIRST
1 p0 3.28007
e+01 5.25704
e-01 1.35072
e-03 9.84426
e-05
2
p1 3.97845
e+00 1.78399
e-02 1.77460
e-05 6.60948
e-04
3
p2 1.01167
e+00 1.29497
e-02 -2.41832
e-05 1.87405
e-03
4
p3 6.17770
e+01 1.32090
e+00 6.25672
e-03 7.19377
e-05
fit1 : Real
Time = 0.19 seconds Cpu
Time = 0.20 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/hist/h1draw.
C
TFile** hsimple.root Demo ROOT file with histograms
TFile* 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
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphs/graph.
C
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
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphs/gerrors.
C
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphics/tornado.
C
tornado : Real
Time = 0.00 seconds Cpu
Time = 0.02 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphs/surfaces.
C
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/graphs/zdemo.
C
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/geom/geometry.
C
na49 : Real
Time = 0.03 seconds Cpu
Time = 0.03 seconds
geometry : Real
Time = 0.12 seconds Cpu
Time = 0.09 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/geom/na49view.
C
na49view : Real
Time = 0.01 seconds Cpu
Time = 0.01 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/
tree/ntuple1.
C
****************************************
Chi2 = 16.5378
NDf = 68
p0 = 1.04821 +/- 0.226552
p1 = 0.0133784 +/- 0.0420448
p2 = 0.956034 +/- 0.0245116
ntuple1 : Real
Time = 0.27 seconds Cpu
Time = 0.28 seconds
Processing benchmark: /builddir/build/BUILD/root-6.08.02/tutorials/rootmarks.
C
---------------ROOT 6.08/02 benchmarks summary--------------------
hsimple : Real
Time = 0.12 seconds Cpu
Time = 0.11 seconds
hsum : Real
Time = 0.04 seconds Cpu
Time = 0.04 seconds
fillrandom: Real
Time = 0.09 seconds Cpu
Time = 0.08 seconds
fit1 : Real
Time = 0.19 seconds Cpu
Time = 0.20 seconds
tornado : Real
Time = 0.00 seconds Cpu
Time = 0.02 seconds
na49 : Real
Time = 0.03 seconds Cpu
Time = 0.03 seconds
geometry : Real
Time = 0.12 seconds Cpu
Time = 0.09 seconds
na49view : Real
Time = 0.01 seconds Cpu
Time = 0.01 seconds
ntuple1 : Real
Time = 0.27 seconds Cpu
Time = 0.28 seconds
TOTAL : Real
Time = 0.87 seconds Cpu
Time = 0.86 seconds
---------------ROOT 6.08/02 benchmarks summary (in ROOTMARKS)-----
For comparison,
a Pentium IV 2.4Ghz is benchmarked at 600 ROOTMARKS
hsimple = 1505.06 RealMARKS, = 1527.27 CpuMARKS
hsum = 2284.19 RealMARKS, = 2250.00 CpuMARKS
fillrandom = 140.89 RealMARKS, = 75.00 CpuMARKS
fit1 = 123.10 RealMARKS, = 90.00 CpuMARKS
tornado = 11061.90 RealMARKS, = 1200.00 CpuMARKS
na49 = 28116.66 RealMARKS, = 27800.00 CpuMARKS
geometry = 978.15 RealMARKS, = 1200.00 CpuMARKS
na49view = 1625.73 RealMARKS, = 1800.00 CpuMARKS
ntuple1 = 633.44 RealMARKS, = 578.57 CpuMARKS
****************************************************
* Your machine is estimated at 2316.93 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/h1draw.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/h1draw.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,"rootmarks.C");
}