Skip to content

Commit 89d1965

Browse files
committed
bench: test no alloc with Lwt weights
1 parent ad6ae45 commit 89d1965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/benchmarks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ SUITE["StateEstimator"]["allocation"]["ExtendedKalmanFilter_updatestate!"] = @be
132132
## ==================================================================================
133133
## ================== PredictiveController benchmarks ===============================
134134
## ==================================================================================
135-
empc = ExplicitMPC(linmodel)
135+
empc = ExplicitMPC(linmodel, Mwt=[1, 1], Nwt=[0.1, 0.1], Lwt=[0.1, 0.1])
136136
SUITE["PredictiveController"]["allocation"] = BenchmarkGroup(["allocation"])
137137
SUITE["PredictiveController"]["allocation"]["ExplicitMPC_moveinput!"] = @benchmarkable(
138-
moveinput!($empc, $d),
138+
moveinput!($empc, $y, $d),
139139
setup=preparestate!($empc, $y, $d),
140140
samples=1
141141
)

0 commit comments

Comments
 (0)