source: docs/PACT14/data/speedup.py @ 4561

Last change on this file since 4561 was 3872, checked in by linmengl, 5 years ago

add grep result into data as amoeba-06-14.csv, add a script to calculate avx2 speedup

  • Property svn:executable set to *
File size: 588 bytes
Line 
1#! /usr/bin/python
2
3import csv
4
5exp = ['at', 'Date', 'Email', 'URIorEmail', 'xHexBytes', 'zStarHeight']
6for e in exp:
7  cycles = {'grep':0, 'bitstreams_avx2':0, 'nrgrep112-avx2':0, 'gre2p-avx2':0}
8  with open('amoeba-06-14.csv', 'rb') as csvfile:
9    data = csv.reader(csvfile)
10    for row in data:
11      if row[1] == e and row[2] in cycles and row[3] == 'cycles:u':
12        cycles[row[2]] = float(row[4])
13
14    print cycles['nrgrep112-avx2'] / cycles['bitstreams_avx2'], \
15          cycles['gre2p-avx2'] / cycles['bitstreams_avx2'], \
16          cycles['grep'] / cycles['bitstreams_avx2']
Note: See TracBrowser for help on using the repository browser.