-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
57 lines (51 loc) · 1.71 KB
/
config.py
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
#!/usr/bin/python3
def init():
# minimum and maximum x-values for output graph
global MIN, MAX
MIN = 0.0
MAX = 0.4
# values for histogram visualization - alpha is opacity and delta is width
global alpha, delta
alpha = 0.5
delta = 0.01
# figure dimensions for bar chart
global fig_size
fig_size = (6, 6)
# filenames
global native_sse_fn, native_no_sse_fn, wasm_simd_fn, wasm_no_simd_fn
native_sse_fn = 'results/native_with_sse.csv'
native_no_sse_fn = 'results/native_no_sse.csv'
wasm_simd_fn = 'results/wasm_with_simd.csv'
wasm_no_simd_fn = 'results/wasm_no_simd.csv'
# {filename : (.txt file for statistical results, histogram title, .png file for histogram)}
global file_struct
file_struct = {
native_sse_fn:
('results/native_with_sse_results.txt', 'Native Decoding with SSE2', 'results/native_with_sse.png'),
native_no_sse_fn:
('results/native_no_sse_results.txt', 'Native Decoding without SSE2', 'results/native_no_sse.png'),
wasm_simd_fn:
('results/wasm_with_simd_results.txt', 'WASM Decoding with SIMD128', 'results/wasm_with_simd.png'),
wasm_no_simd_fn:
('results/wasm_no_simd_results.txt', 'WASM Decoding without SIMD128', 'results/wasm_no_simd.png')
}
# output information for comp_analysis.py
global comp_struct
comp_struct = (
'results/comparative_results.txt',
[
'Native without SSE2',
'Native with SSE2',
'WASM without SIMD128',
'WASM with SIMD128'
],
'Comparison of Decoding Speeds',
'results/comparison.png',
'results/bar_chart.png',
[
'Native without\nSSE2',
'Native with\nSSE2',
'WASM without\nSIMD128',
'WASM with\nSIMD128'
]
)