We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b832a commit e72739dCopy full SHA for e72739d
examples/bench.jl
@@ -1,6 +1,7 @@
1
using LinearAlgebra
2
using ControlPlots
3
using VortexStepMethod
4
+using BenchmarkTools
5
6
plot = true
7
@@ -38,8 +39,8 @@ llt_solver = Solver(aerodynamic_model_type=:LLT)
38
39
vsm_solver = Solver(aerodynamic_model_type=:VSM)
40
41
# Step 5: Solve using both methods
-results_vsm = solve(vsm_solver, wa)
42
-@time results_vsm = solve(vsm_solver, wa)
+@btime results_llt = solve($vsm_solver, $wa)
43
+@btime results_vsm = solve($vsm_solver, $wa)
44
# time Python: 32.0 ms Ryzen 7950x
45
# time Julia: 0.6 ms Ryzen 7950x
46
# 0.8 ms laptop, performance mode, battery
0 commit comments