[1199] | 1 | #!/bin/awk -f |
---|
| 2 | # |
---|
| 3 | # Process log output from do-runs jobs, and create table with key quantities. |
---|
| 4 | # Initial version : J. Apostolakis, 8 Dec 2006, 12:50 CET |
---|
| 5 | # Version 0.2.1, JA, 8 Dec 2006, 13:00 CET |
---|
| 6 | # |
---|
| 7 | BEGIN { dbg= 0; } |
---|
| 8 | /Running/ { inp=$4; |
---|
| 9 | nevents=1000; if( /2x/ ){ nevents = 100;} |
---|
| 10 | if( dbg ) { print "Events= ", nevents; } |
---|
| 11 | events = 1.0 * nevents; |
---|
| 12 | } |
---|
| 13 | /real/ { realtm= $6; erealtm= $8; } |
---|
| 14 | /^ *No trials/ { trials = $3; ncalls= $6; maxtr= $8; } |
---|
| 15 | /field/ { nfield=$6; } |
---|
| 16 | /^Killed/ { nkilled=$2; } |
---|
| 17 | /^Total energy/ { ekilled= $4; } |
---|
| 18 | /Iterations/ { printf "%5s %7d %7.3f +- %6.3f %9.2f %9.2f %7.5f %6d %7.4g \n", |
---|
| 19 | inp, events, realtm, erealtm, trials/events, ncalls/events, trials/(1.0*ncalls), |
---|
| 20 | maxtr, nfield/events, nkilled, ekilled; } |
---|
| 21 | |
---|
| 22 | BEGIN { printf "%5s %8s %9s %6s %10s %9s %9s %7s %6s %7s \n", |
---|
| 23 | "Run", "#Events", "Real time", "error", "trials/ev", "calls/ev", "trials/call", "maxTrials", "#FieldCAlls/ev", "killed", "E_killed" ; } |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | # 10:44:47 up 4 days, 43 min, 2 users, load average: 0.95, 0.47, 0.23 |
---|
| 27 | # Running with input 2xc |
---|
| 28 | # 196.260u 0.080s 3:16.43 99.9% 0+0k 0+0io 3826pf+0w |
---|
| 29 | # ### Event real time = 1.93 +- 0.0973 (sec) |
---|
| 30 | # ### Event user time = 1.93 +- 0.0973 (sec) |
---|
| 31 | # No trials: 14980308 No Calls: 14354838 Max-trial: 16 |
---|
| 32 | # Number calls to field = 216125054 |
---|
| 33 | # Parameters: fFirstFraction 0.999 fFractionLast 1 fFractionNextEstimate 0.98 |
---|
| 34 | # /vis~/show/view |
---|
| 35 | # Killed 0 number of tracks |
---|
| 36 | # Total energy killed= MeV |
---|
| 37 | # Iterations of trials: no statistics collected |
---|
| 38 | |
---|