Ignore:
Timestamp:
Nov 16, 2011, 1:45:27 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: renaming dictionary prefixed files into wcd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/SymbolTable/src/perf_script.py

    r1460 r1688  
    1111  mes_f = open('mesfile', 'w')
    1212  for program in programs:
    13     for testfile in testfiles: 
     13    for testfile in testfiles:
    1414      for i in range(10):
    15         call(['./'+program, testfile_home+testfile], stderr=mes_f)
    16        
     15        call(['./'+program, testfile_home+testfile], stderr=mes_f)
     16
    1717def analyze_rslt():     
    1818      mes_f = open('mesfile', 'r')
     
    2121      rows = {}
    2222      for r in results[:-1]:
    23         results_int.append(int(r))
     23        results_int.append(int(r))
    2424      first_row = '\t\t'
    2525      for testfile in testfiles:
    26         first_row += testfile + '  &\t'
     26        first_row += testfile + '  &\t'
    2727      first_row =  first_row[:-4]
    2828      print first_row
    2929      for program in programs:
    30         row = program + '   &\t'
    31         for testfile in testfiles:
    32           result = results_int[0:10]
    33           results_int = results_int[10:]
    34           row +=  str(min(result)/1000.0) + '   &\t'
    35         row = row[:-4]
    36         row +='\\\\ \\hline'
    37         print row
     30        row = program + '   &\t'
     31        for testfile in testfiles:
     32          result = results_int[0:10]
     33          results_int = results_int[10:]
     34          row +=  str(min(result)/1000.0) + '   &\t'
     35        row = row[:-4]
     36        row +='\\\\ \\hline'
     37        print row
    3838       
    3939       
Note: See TracChangeset for help on using the changeset viewer.