prim revision 12027
12155SN/A#! /bin/awk -f 22155SN/A 32155SN/ABEGIN { 42155SN/A purpose = "report times for microbenchmarks" 52155SN/A 62155SN/A nmach = 0; 72155SN/A 82155SN/A test_callind = "18"; 92155SN/A test_callimm = "18"; 102155SN/A test_addreg = "20"; 112155SN/A test_loadreg = "21"; 122155SN/A} 132155SN/A 142155SN/A{ 152155SN/A mach = $1 162155SN/A test = $2 172155SN/A iter = $3 182155SN/A time = $6 + $8 192155SN/A 202155SN/A if (machi[mach] == 0) { 212155SN/A machn[nmach] = mach; 222155SN/A machi[mach] = 1; 232155SN/A ++nmach; 242155SN/A } 252155SN/A 262155SN/A ns_per_op = time / iter * 1000000 272155SN/A times[mach "_" test] = ns_per_op; 282665Ssaidi@eecs.umich.edu} 292665Ssaidi@eecs.umich.edu 302155SN/A 314202Sbinkertn@umich.eduEND { 322155SN/A for (i=0; i<nmach; ++i) { 332178SN/A m = machn[i]; 342178SN/A 352178SN/A ind = times[m "_" test_callind]; 362178SN/A imm = times[m "_" test_callimm]; 372178SN/A add = times[m "_" test_addreg]; 382178SN/A load = times[m "_" test_loadreg]; 392178SN/A printf ("%s|%1.3f|%1.3f|%1.3f|%1.3f\n", m, ind, imm, add, load); 402178SN/A } 412178SN/A} 422178SN/A