File: seqpar.gnuplot

package info (click to toggle)
ruby-treetop 1.6.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: ruby: 8,918; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
f1(x) = a*x
a = 0.5
fit f1(x) 'before.dat' using 1:2 via a
 
f2(x) = b*x
b = 0.5
fit f2(x) 'after.dat' using 1:2 via b
 
set xlabel "Length of input"
set ylabel "CPU time to parse"

plot a*x        title 'a*x (Before)',\
     b*x        title 'b*x (After)',\
     "before.dat" using 1:2 title 'Before', \
     "after.dat" using 1:2 title 'After'