Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
rootmarks.C File Reference

Detailed Description

Prints a summary of all ROOT benchmarks (must be run before).

The ROOTMARK number printed is by reference to a Pentium IV 2.4 Ghz (with 512 MBytes memory and 120 GBytes IDE disk) taken by definition as 600 ROOTMARKS in batch mode in executing

root -b -q benchmarks.C

void rootmarks() {
Float_t norml = 600;
Bool_t batch = gROOT->IsBatch();
printf("---------------ROOT %s benchmarks summary--------------------\n",gROOT->GetVersion());
printf("\n---------------ROOT %s benchmarks summary (in ROOTMARKS)-----\n",gROOT->GetVersion());
printf(" For comparison, a Pentium IV 2.4Ghz is benchmarked at 600 ROOTMARKS\n");
if (hsimple_rt > 0) {
if (batch) {
} else {
}
printf("hsimple = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (hsum_rt > 0) {
if (batch) {
rtmark = norml*(0.16/hsum_rt);
cpmark = norml*(0.15/hsum_ct);
} else {
rtmark = norml*(0.99/hsum_rt);
cpmark = norml*(0.24/hsum_ct);
}
printf("hsum = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (fillrandom_rt > 0) {
if (batch) {
} else {
}
printf("fillrandom = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (fit1_rt > 0) {
if (batch) {
rtmark = norml*(0.04/fit1_rt);
cpmark = norml*(0.03/fit1_ct);
} else {
rtmark = norml*(0.13/fit1_rt);
cpmark = norml*(0.03/fit1_ct);
}
printf("fit1 = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (tornado_rt > 0) {
if (batch) {
} else {
}
printf("tornado = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (na49_rt > 0) {
rtmark = norml*(1.39/na49_rt);
cpmark = norml*(1.39/na49_ct);
printf("na49 = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (geometry_rt > 0) {
printf("geometry = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (na49view_rt > 0) {
if (batch) {
} else {
}
printf("na49view = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (ntuple1_rt > 0) {
if (batch) {
} else {
}
printf("ntuple1 = %7.2f RealMARKS, = %7.2f CpuMARKS\n",rtmark,cpmark);
}
if (rtall) {
if (batch) {
rtbrun = 3.45;
cpbrun = 3.24;
} else {
rtbrun = 5.79;
cpbrun = 4.08;
}
printf("\n");
printf("****************************************************\n");
printf("* Your machine is estimated at %7.2f ROOTMARKS *\n",rootmarks);
printf("****************************************************\n");
} else {
printf(" You must run the ROOT benchmarks before executing this command\n");
}
}
bool Bool_t
Definition RtypesCore.h:63
float Float_t
Definition RtypesCore.h:57
R__EXTERN TBenchmark * gBenchmark
Definition TBenchmark.h:59
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define gROOT
Definition TROOT.h:406
virtual void Summary(Float_t &rt, Float_t &cp)
Prints a summary of all benchmarks.
Float_t GetCpuTime(const char *name)
Returns Cpu time used by Benchmark name.
Float_t GetRealTime(const char *name)
Returns Realtime used by Benchmark name.
Author
Rene Brun

Definition in file rootmarks.C.