init revision 12027
12139SN/A#! /bin/awk -f 22139SN/A 32139SN/ABEGIN { 42139SN/A purpose = "Report time used to initialize a thread." 52139SN/A nmach = 0; 62139SN/A 72139SN/A test_single = "1"; 82139SN/A test_v0 = "14"; 92139SN/A test_v2 = "15"; 102139SN/A test_v4 = "16"; 112139SN/A test_v8 = "17"; 122139SN/A} 132139SN/A 142139SN/A{ 152139SN/A mach = $1 162139SN/A test = $2 172139SN/A iter = $3 182139SN/A time = $6 + $8 192139SN/A 202139SN/A if (machi[mach] == 0) { 212139SN/A machn[nmach] = mach; 222139SN/A machi[mach] = 1; 232139SN/A ++nmach; 242139SN/A } 252139SN/A 262139SN/A us_per_op = time / iter * 1000000 272139SN/A times[mach "_" test] = us_per_op; 282665Ssaidi@eecs.umich.edu} 292665Ssaidi@eecs.umich.edu 302139SN/A 312718Sstever@eecs.umich.eduEND { 322139SN/A for (i=0; i<nmach; ++i) { 332139SN/A m = machn[i]; 342139SN/A 352139SN/A single = times[m "_" test_single]; 362152SN/A v0 = times[m "_" test_v0]; 372152SN/A v2 = times[m "_" test_v2]; 382152SN/A v4 = times[m "_" test_v4]; 392152SN/A v8 = times[m "_" test_v8]; 402139SN/A printf ("%s|%3.1f|%3.1f|%3.1f|%3.1f|%3.1f\n", m, single, v0, v2, v4, v8); 412139SN/A } 422139SN/A} 432139SN/A