Changeset 3627


Ignore:
Timestamp:
Feb 20, 2014, 4:48:13 PM (6 years ago)
Author:
cameron
Message:

HexBytes? test case; h2cv5 testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/performance/perf.py

    r3492 r3627  
    3030        if not os.path.exists(outputpath):
    3131                os.makedirs(outputpath)
    32         if not os.path.exists(outputpath+'/'+execution.stat):           
     32        if True: #not os.path.exists(outputpath+'/'+execution.stat):           
    3333                one=execute_one(execution,1)
    3434                results_file = open(outputpath+'/'+execution.stat,'w')
     
    136136                p = Popen(cmd,shell=True)
    137137                p.wait()
     138        if execution.program=='h2cv5':
     139                h2cv5location='h2cv5'
     140                e = execution.expression.expression
     141                e = escape_quotes(e)
     142                cmd = ['perf stat -x, -o perfoutput -r '+str(count)+' -e '+ execution.stat+ ' '+h2cv5location+' -c \'' + e + '\' '+ execution.file.file + redirectoutput]
     143                p = Popen(cmd,shell=True)
     144                p.wait()
    138145        output_file = open('perfoutput', 'r')
    139146        output = output_file.read()
     
    209216expressions.append(Expression('([0-9][0-9]?)/([0-9][0-9]?)/([0-9][0-9]([0-9][0-9])?)', 'Date', ('reb',)))
    210217expressions.append(Expression('([a-zA-Z][a-zA-Z0-9]*)://([^ /]+)(/[^ ]*)?|([^ @]+)@([^ @]+)', 'URIorEmail', ('reb',)))
     218#expressions.append(Expression('(^| )0x([a-fA-F0-9][a-fA-F0-9])+($ | |[.:.,?!] )', 'HexBytes', ('reb',)))
     219expressions.append(Expression('0x([a-fA-F0-9][a-fA-F0-9])+', 'HexBytes', ('reb',)))
    211220
    212221
     
    221230expressions.append(Expression('(^|[^A-Z0-9:])([A-F0-9]{1,4}:){7}[A-F0-9]{1,4}($|[^A-Z0-9:])', 'IPv6', ('reb',)))
    222231
    223 # programs = ['bitstreams', 'grep', 'nrgrep112']#, 'agrep', 'pcregrep']
     232programs = ['bitstreams', 'grep', 'nrgrep112']#, 'agrep', 'pcregrep']
    224233# programs = ['bitstreams', 'bitstreams_avx2']
    225 programs = ['bitstreams', 'bitstreams_avx2']
    226 # programs = ['gpu']
    227 
     234#programs = ['bitstreams']
     235#programs = ['gpu']
     236#programs = ['bitstreams','h2cv5']
     237#
    228238#stats = ['cycles:u', 'instructions:u', 'cache-misses:u', 'L1-dcache-load-misses:u', 'L1-dcache-store-misses:u', 'L1-dcache-prefetch-misses:u', 'L1-icache-load-misses:u']
    229 stats = ['cycles:u','instructions:u','branch-misses:u']
     239stats = ['cycles:u','instructions:u']
    230240
    231241
Note: See TracChangeset for help on using the changeset viewer.