Skip to content

Commit f4e87f7

Browse files
committed
bench: removing useless unit tests on MHE
There is no real computations involved in `updatestate!` with `direct=true`, or `preparestate!` with `direct=false`. These results are just visual noise, let's remove them.
1 parent 86844fc commit f4e87f7

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

‎benchmark/2_bench_state_estim.jl‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -156,28 +156,11 @@ UNIT_ESTIM["MovingHorizonEstimator"]["preparestate!"]["LinModel"]["Current form"
156156
preparestate!($mhe_lin_curr, $y, $d),
157157
samples=samples, evals=evals, seconds=seconds,
158158
)
159-
UNIT_ESTIM["MovingHorizonEstimator"]["updatestate!"]["LinModel"]["Current form"] =
160-
@benchmarkable(
161-
updatestate!($mhe_lin_curr, $u, $y, $d),
162-
setup=preparestate!($mhe_lin_curr, $y, $d),
163-
samples=samples, evals=evals, seconds=seconds,
164-
)
165159
UNIT_ESTIM["MovingHorizonEstimator"]["preparestate!"]["LinModel"]["Constant arr. cov."] =
166160
@benchmarkable(
167161
preparestate!($mhe_lin_skf, $y, $d),
168162
samples=samples, evals=evals, seconds=seconds,
169163
)
170-
UNIT_ESTIM["MovingHorizonEstimator"]["updatestate!"]["LinModel"]["Constant arr. cov."] =
171-
@benchmarkable(
172-
updatestate!($mhe_lin_skf, $u, $y, $d),
173-
setup=preparestate!($mhe_lin_skf, $y, $d),
174-
samples=samples, evals=evals, seconds=seconds,
175-
)
176-
UNIT_ESTIM["MovingHorizonEstimator"]["preparestate!"]["LinModel"]["Prediction form"] =
177-
@benchmarkable(
178-
preparestate!($mhe_lin_pred, $y, $d),
179-
samples=samples, evals=evals, seconds=seconds,
180-
)
181164
UNIT_ESTIM["MovingHorizonEstimator"]["updatestate!"]["LinModel"]["Prediction form"] =
182165
@benchmarkable(
183166
updatestate!($mhe_lin_pred, $u, $y, $d),
@@ -195,17 +178,6 @@ UNIT_ESTIM["MovingHorizonEstimator"]["preparestate!"]["NonLinModel"]["Current fo
195178
preparestate!($mhe_nonlin_curr, $y, $d),
196179
samples=samples, evals=evals, seconds=seconds,
197180
)
198-
UNIT_ESTIM["MovingHorizonEstimator"]["updatestate!"]["NonLinModel"]["Current form"] =
199-
@benchmarkable(
200-
updatestate!($mhe_nonlin_curr, $u, $y, $d),
201-
setup=preparestate!($mhe_nonlin_curr, $y, $d),
202-
samples=samples, evals=evals, seconds=seconds,
203-
)
204-
UNIT_ESTIM["MovingHorizonEstimator"]["preparestate!"]["NonLinModel"]["Prediction form"] =
205-
@benchmarkable(
206-
preparestate!($mhe_nonlin_pred, $y, $d),
207-
samples=samples, evals=evals, seconds=seconds,
208-
)
209181
UNIT_ESTIM["MovingHorizonEstimator"]["updatestate!"]["NonLinModel"]["Prediction form"] =
210182
@benchmarkable(
211183
updatestate!($mhe_nonlin_pred, $u, $y, $d),

0 commit comments

Comments
 (0)