Skip to content

Commit 0ad3d58

Browse files
committed
bench: evaloutput skf
1 parent bee9806 commit 0ad3d58

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

benchmark/benchmarks.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ SUITE["StateEstimator"]["allocation"]["SteadyKalmanFilter_preparestate!"] = @ben
5555
preparestate!($skf, $y, $d),
5656
samples=1
5757
)
58-
SUITE["StateEstimator"]["allocation"]["SteadyKalmanFilter_update!"] = @benchmarkable(
58+
SUITE["StateEstimator"]["allocation"]["SteadyKalmanFilter_updatestate!"] = @benchmarkable(
5959
updatestate!($skf, $u, $y, $d),
6060
setup=preparestate!($skf, $y, $d),
6161
samples=1
62+
)
63+
SUITE["StateEstimator"]["allocation"]["SteadyKalmanFilter_evaloutput"] = @benchmarkable(
64+
evaloutput($skf, $d),
65+
setup=preparestate!($skf, $y, $d),
66+
samples=1
6267
)

test/2_test_state_estim.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,9 @@ end
7171
preparestate!(kalmanfilter1, y)
7272
@test updatestate!(kalmanfilter1, u, y, d) zeros(4)
7373
@test kalmanfilter1.x̂0 zeros(4)
74-
@test_skip @allocations(preparestate!(kalmanfilter1, y)) == 0
75-
@test_skip @allocations(updatestate!(kalmanfilter1, u, y)) == 0
7674
preparestate!(kalmanfilter1, y)
7775
@test evaloutput(kalmanfilter1) kalmanfilter1() [50, 30]
7876
@test evaloutput(kalmanfilter1, d) kalmanfilter1(d) [50, 30]
79-
@test_skip @allocations(evaloutput(kalmanfilter1, d)) == 0
8077
@test initstate!(kalmanfilter1, [10, 50], [50, 30+1]) [zeros(3); [1]]
8178
linmodel2 = LinModel(append(tf(1, [1, 0]), tf(2, [10, 1])), 1.0)
8279
kalmanfilter2 = SteadyKalmanFilter(linmodel2, nint_u=[1, 1], direct=false)

0 commit comments

Comments
 (0)