Skip to content

Commit e72739d

Browse files
committed
make example bench more proper
1 parent d2b832a commit e72739d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/bench.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using LinearAlgebra
22
using ControlPlots
33
using VortexStepMethod
4+
using BenchmarkTools
45

56
plot = true
67

@@ -38,8 +39,8 @@ llt_solver = Solver(aerodynamic_model_type=:LLT)
3839
vsm_solver = Solver(aerodynamic_model_type=:VSM)
3940

4041
# Step 5: Solve using both methods
41-
results_vsm = solve(vsm_solver, wa)
42-
@time results_vsm = solve(vsm_solver, wa)
42+
@btime results_llt = solve($vsm_solver, $wa)
43+
@btime results_vsm = solve($vsm_solver, $wa)
4344
# time Python: 32.0 ms Ryzen 7950x
4445
# time Julia: 0.6 ms Ryzen 7950x
4546
# 0.8 ms laptop, performance mode, battery

0 commit comments

Comments
 (0)