Skip to content

Commit 0db9c77

Browse files
[benchmark] add naive and lazy plot scripts
1 parent 8854a41 commit 0db9c77

File tree

4 files changed

+256
-0
lines changed

4 files changed

+256
-0
lines changed

benchmark/script/predict_lazy.plt

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/gnuplot
2+
# _ __ _ __ __ _ _
3+
# | |/ / /\ | | | \/ | /\ | \ | |
4+
# | ' / / \ | | | \ / | / \ | \| |
5+
# | < / /\ \ | | | |\/| | / /\ \ | . ` |
6+
# | . \ / ____ \| |____| | | |/ ____ \| |\ |
7+
# |_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
8+
9+
# Kalman Filter
10+
# Version 0.2.0
11+
# https://github.com/FrancoisCarouge/Kalman
12+
13+
# SPDX-License-Identifier: Unlicense
14+
15+
# This is free and unencumbered software released into the public domain.
16+
17+
# Anyone is free to copy, modify, publish, use, compile, sell, or
18+
# distribute this software, either in source code form or as a compiled
19+
# binary, for any purpose, commercial or non-commercial, and by any
20+
# means.
21+
22+
# In jurisdictions that recognize copyright laws, the author or authors
23+
# of this software dedicate any and all copyright interest in the
24+
# software to the public domain. We make this dedication for the benefit
25+
# of the public at large and to the detriment of our heirs and
26+
# successors. We intend this dedication to be an overt act of
27+
# relinquishment in perpetuity of all present and future rights to this
28+
# software under copyright law.
29+
30+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
34+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
35+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
36+
# OTHER DEALINGS IN THE SOFTWARE.
37+
38+
# For more information, please refer to <https://unlicense.org>
39+
40+
set terminal svg enhanced background rgb "white" size 800,600
41+
set datafile separator ","
42+
set title "{/:Bold Constexpr Lazy Linear Algebra Predict Float Group Benchmark}\n"
43+
set output "kalman/benchmark/image/predict_lazy.svg"
44+
set timestamp
45+
set grid
46+
set grid ztics
47+
set xlabel "State (count)"
48+
set ylabel "Input (count)"
49+
set zlabel "Time (ns)"
50+
set zlabel rotate by 90
51+
set dgrid3d 32,32,1
52+
show dgrid3d
53+
set ticslevel 0
54+
set xrange [ 0.1 : 32.9 ]
55+
set yrange [ 0.1 : 32.9 ]
56+
set xtics 1
57+
set ytics 1
58+
set view 60,330,1.125,1.125
59+
show view
60+
set pm3d
61+
set hidden3d
62+
set key noautotitle
63+
64+
splot "/tmp/kalman/predict_lazy.csv" using 1:2:3 with lines

benchmark/script/predict_naive.plt

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/gnuplot
2+
# _ __ _ __ __ _ _
3+
# | |/ / /\ | | | \/ | /\ | \ | |
4+
# | ' / / \ | | | \ / | / \ | \| |
5+
# | < / /\ \ | | | |\/| | / /\ \ | . ` |
6+
# | . \ / ____ \| |____| | | |/ ____ \| |\ |
7+
# |_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
8+
9+
# Kalman Filter
10+
# Version 0.2.0
11+
# https://github.com/FrancoisCarouge/Kalman
12+
13+
# SPDX-License-Identifier: Unlicense
14+
15+
# This is free and unencumbered software released into the public domain.
16+
17+
# Anyone is free to copy, modify, publish, use, compile, sell, or
18+
# distribute this software, either in source code form or as a compiled
19+
# binary, for any purpose, commercial or non-commercial, and by any
20+
# means.
21+
22+
# In jurisdictions that recognize copyright laws, the author or authors
23+
# of this software dedicate any and all copyright interest in the
24+
# software to the public domain. We make this dedication for the benefit
25+
# of the public at large and to the detriment of our heirs and
26+
# successors. We intend this dedication to be an overt act of
27+
# relinquishment in perpetuity of all present and future rights to this
28+
# software under copyright law.
29+
30+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
34+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
35+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
36+
# OTHER DEALINGS IN THE SOFTWARE.
37+
38+
# For more information, please refer to <https://unlicense.org>
39+
40+
set terminal svg enhanced background rgb "white" size 800,600
41+
set datafile separator ","
42+
set title "{/:Bold Constexpr Naive Linear Algebra Predict Float Group Benchmark}\n"
43+
set output "kalman/benchmark/image/predict_naive.svg"
44+
set timestamp
45+
set grid
46+
set grid ztics
47+
set xlabel "State (count)"
48+
set ylabel "Input (count)"
49+
set zlabel "Time (ns)"
50+
set zlabel rotate by 90
51+
set dgrid3d 32,32,1
52+
show dgrid3d
53+
set ticslevel 0
54+
set xrange [ 0.1 : 32.9 ]
55+
set yrange [ 0.1 : 32.9 ]
56+
set xtics 1
57+
set ytics 1
58+
set view 60,330,1.125,1.125
59+
show view
60+
set pm3d
61+
set hidden3d
62+
set key noautotitle
63+
64+
splot "/tmp/kalman/predict_naive.csv" using 1:2:3 with lines

benchmark/script/update_lazy.plt

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/gnuplot
2+
# _ __ _ __ __ _ _
3+
# | |/ / /\ | | | \/ | /\ | \ | |
4+
# | ' / / \ | | | \ / | / \ | \| |
5+
# | < / /\ \ | | | |\/| | / /\ \ | . ` |
6+
# | . \ / ____ \| |____| | | |/ ____ \| |\ |
7+
# |_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
8+
9+
# Kalman Filter
10+
# Version 0.2.0
11+
# https://github.com/FrancoisCarouge/Kalman
12+
13+
# SPDX-License-Identifier: Unlicense
14+
15+
# This is free and unencumbered software released into the public domain.
16+
17+
# Anyone is free to copy, modify, publish, use, compile, sell, or
18+
# distribute this software, either in source code form or as a compiled
19+
# binary, for any purpose, commercial or non-commercial, and by any
20+
# means.
21+
22+
# In jurisdictions that recognize copyright laws, the author or authors
23+
# of this software dedicate any and all copyright interest in the
24+
# software to the public domain. We make this dedication for the benefit
25+
# of the public at large and to the detriment of our heirs and
26+
# successors. We intend this dedication to be an overt act of
27+
# relinquishment in perpetuity of all present and future rights to this
28+
# software under copyright law.
29+
30+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
34+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
35+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
36+
# OTHER DEALINGS IN THE SOFTWARE.
37+
38+
# For more information, please refer to <https://unlicense.org>
39+
40+
set terminal svg enhanced background rgb "white" size 800,600
41+
set datafile separator ","
42+
set title "{/:Bold Constexpr Lazy Linear Algebra Update Float Group Benchmark}\n"
43+
set output "kalman/benchmark/image/update_lazy.svg"
44+
set timestamp
45+
set grid
46+
set grid ztics
47+
set xlabel "State (count)"
48+
set ylabel "Output (count)"
49+
set zlabel "Time (ns)"
50+
set zlabel rotate by 90
51+
set dgrid3d 32,32,1
52+
show dgrid3d
53+
set ticslevel 0
54+
set xrange [ 0.1 : 32.9 ]
55+
set yrange [ 0.1 : 32.9 ]
56+
set xtics 1
57+
set ytics 1
58+
set view 60,330,1.125,1.125
59+
show view
60+
set pm3d
61+
set hidden3d
62+
set key noautotitle
63+
64+
splot "/tmp/kalman/update_lazy.csv" using 1:2:3 with lines

benchmark/script/update_naive.plt

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/gnuplot
2+
# _ __ _ __ __ _ _
3+
# | |/ / /\ | | | \/ | /\ | \ | |
4+
# | ' / / \ | | | \ / | / \ | \| |
5+
# | < / /\ \ | | | |\/| | / /\ \ | . ` |
6+
# | . \ / ____ \| |____| | | |/ ____ \| |\ |
7+
# |_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
8+
9+
# Kalman Filter
10+
# Version 0.2.0
11+
# https://github.com/FrancoisCarouge/Kalman
12+
13+
# SPDX-License-Identifier: Unlicense
14+
15+
# This is free and unencumbered software released into the public domain.
16+
17+
# Anyone is free to copy, modify, publish, use, compile, sell, or
18+
# distribute this software, either in source code form or as a compiled
19+
# binary, for any purpose, commercial or non-commercial, and by any
20+
# means.
21+
22+
# In jurisdictions that recognize copyright laws, the author or authors
23+
# of this software dedicate any and all copyright interest in the
24+
# software to the public domain. We make this dedication for the benefit
25+
# of the public at large and to the detriment of our heirs and
26+
# successors. We intend this dedication to be an overt act of
27+
# relinquishment in perpetuity of all present and future rights to this
28+
# software under copyright law.
29+
30+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
34+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
35+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
36+
# OTHER DEALINGS IN THE SOFTWARE.
37+
38+
# For more information, please refer to <https://unlicense.org>
39+
40+
set terminal svg enhanced background rgb "white" size 800,600
41+
set datafile separator ","
42+
set title "{/:Bold Constexpr Naive Linear Algebra Update Float Group Benchmark}\n"
43+
set output "kalman/benchmark/image/update_naive.svg"
44+
set timestamp
45+
set grid
46+
set grid ztics
47+
set xlabel "State (count)"
48+
set ylabel "Output (count)"
49+
set zlabel "Time (ns)"
50+
set zlabel rotate by 90
51+
set dgrid3d 32,32,1
52+
show dgrid3d
53+
set ticslevel 0
54+
set xrange [ 0.1 : 32.9 ]
55+
set yrange [ 0.1 : 32.9 ]
56+
set xtics 1
57+
set ytics 1
58+
set view 60,330,1.125,1.125
59+
show view
60+
set pm3d
61+
set hidden3d
62+
set key noautotitle
63+
64+
splot "/tmp/kalman/update_naive.csv" using 1:2:3 with lines

0 commit comments

Comments
 (0)