-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot.gp
57 lines (47 loc) · 1.48 KB
/
plot.gp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set term pngcairo size 1100,700 font 'Helvetica,14'
set output 'threading.png'
cc='out_mat_mul_cc'
py='out_mat_mul_py'
py_v='out_mat_mul_py_v'
set multiplot layout 2,3
set title 'C++'
set xlabel 'threads'
set ylabel 'time'
set key
unset yrange
set logscale y
set format y "10^{%L}"
plot for[i=0:*] cc index i u 2:3 w l lw 7 title columnheader(1)
set title 'python (for + joblib)'
unset key
set xlabel 'threads'
set ylabel 'time'
unset yrange
set logscale y
set format y "10^{%L}"
plot for[i=0:*] py index i u 2:3 w l lw 7 title columnheader(1)
set title 'python (vectorized)'
set xlabel 'threads'
set ylabel 'time'
unset yrange
set logscale y
set format y "10^{%L}"
plot for[i=0:*] py_v index i u 2:3 w l lw 7 title columnheader(1)
unset title
unset logscale
set ylabel 'efficiency'
set yrange [0:1.1]
unset format y
plot for[i=0:*] cc index i using 2:4 w l lw 7 title columnheader(1), 1. title 'perfect' w l lw 3 lc 'black' lt 2 dt 2, 1./x title 'no gain' w l lw 3 lc 'black' lt 2 dt 2
unset logscale
set ylabel 'efficiency'
set yrange [0:1.1]
unset format y
plot for[i=0:*] py index i using 2:4 w l lw 7 title columnheader(1), 1. title 'perfect' w l lw 3 lc 'black' lt 2 dt 2, 1./x title 'no gain' w l lw 3 lc 'black' lt 2 dt 2
unset logscale
set ylabel 'efficiency'
set yrange [0:1.1]
unset format y
plot for[i=0:*] py_v index i using 2:4 w l lw 7 title columnheader(1), 1. title 'perfect' w l lw 3 lc 'black' lt 2 dt 2, 1./x title 'no gain' w l lw 3 lc 'black' lt 2 dt 2
unset multiplot
unset output