State Machine Benchmark

October 31, 2021 ยท View on GitHub

Benchmark

Runtime Benchmark Results

Gcc 8

Benchmark Hsm Sml Msm Statechart
Simple state machine
96 ms
0 ms
23 ms
376 ms
Complex state machine
967 ms
986 ms
982 ms
1571 ms

Gcc 9

Benchmark Hsm Sml Msm Statechart
Simple state machine
90 ms
0 ms
18 ms
360 ms
Complex state machine
890 ms
885 ms
850 ms
1253 ms

Gcc 10

Benchmark Hsm Sml Msm Statechart
Simple state machine
94 ms
0 ms
24 ms
369 ms
Complex state machine
826 ms
790 ms
801 ms
1335 ms

Clang 8

Benchmark Hsm Sml Msm Statechart
Simple state machine
115 ms
21 ms
21 ms
533 ms
Complex state machine
929 ms
996 ms
1024 ms
1514 ms

Clang 9

Benchmark Hsm Sml Msm Statechart
Simple state machine
99 ms
17 ms
18 ms
443 ms
Complex state machine
818 ms
978 ms
881 ms
1374 ms

Clang 10

Benchmark Hsm Sml Msm Statechart
Simple state machine
112 ms
22 ms
22 ms
530 ms
Complex state machine
815 ms
856 ms
882 ms
1363 ms

Compiletime Benchmark Results

Gcc 8

Benchmark Hsm Sml Msm Statechart
Simple state machine
4.99 s
0.61 s
8.90 s
2.20 s
Complex state machine
37.02 s
2.99 s
58.12 s
5.92 s

Gcc 9

Benchmark Hsm Sml Msm Statechart
Simple state machine
4.29 s
0.52 s
7.28 s
1.96 s
Complex state machine
34.58 s
2.69 s
46.65 s
5.87 s

Gcc 10

Benchmark Hsm Sml Msm Statechart
Simple state machine
6.02 s
0.72 s
9.54 s
2.39 s
Complex state machine
49.71 s
3.29 s
50.02 s
6.89 s

Clang 8

Benchmark Hsm Sml Msm Statechart
Simple state machine
7.22 s
0.71 s
5.77 s
1.63 s
Complex state machine
47.40 s
3.48 s
28.86 s
5.20 s

Clang 9

Benchmark Hsm Sml Msm Statechart
Simple state machine
6.41 s
0.62 s
5.17 s
1.52 s
Complex state machine
41.99 s
3.01 s
25.54 s
4.27 s

Clang 10

Benchmark Hsm Sml Msm Statechart
Simple state machine
9.48 s
0.83 s
7.32 s
2.10 s
Complex state machine
61.59 s
3.93 s
35.83 s
6.93 s

Compilememory Benchmark Results

Clang 12

Benchmark Hsm Sml Msm Statechart
Simple state machine
174.649 MB
28.474 MB
404.621 MB
70.976 MB
Complex state machine
815.720 MB
188.333 MB
1323.477 MB
122.720 MB