Skip to content

Commit 163f87e

Browse files
Script to gather performances on string tests
1 parent eec8c4f commit 163f87e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/python
2+
from subprocess import check_output
3+
4+
git_output=check_output(["git", "show", "HEAD"])
5+
commit=git_output.split('\n')[0]
6+
7+
commit_id=commit[7:]
8+
9+
process = check_output(["grep", "^Runtime\ decision\ procedure", "-R"])
10+
11+
file_name='performance_'+commit_id+'.out'
12+
print "writing to file", file_name
13+
f=open(file_name, 'w')
14+
15+
for x in process.split('\n'):
16+
f.write(x+'\n')
17+
18+
f.close()
19+
20+
print "drawing to file", file_name+".png"
21+
22+
gnuplot_output = check_output(["gnuplot", "-e", "file='"+file_name+"'", "-e", "outputfile='"+file_name+".png'", "performance_draw.gp"])
23+
24+
print gnuplot_output
25+
26+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set datafile separator ":"
2+
set term png
3+
set output outputfile
4+
set logscale y 10
5+
6+
plot file using 3 with lines

0 commit comments

Comments
 (0)