Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions benchmarks/benchmarks-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
"julia_arch": "x64",
"runs_on": "[\"moonshot\"]",
"runner": "self-hosted"
},
{
"id": "core-midpoint",
"julia_version": "1.11",
"julia_arch": "x64",
"runs_on": "[\"midpoint\"]",
"runner": "github"
}
]
}
33 changes: 33 additions & 0 deletions benchmarks/core-midpoint.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Benchmark script for core-midpoint
# Setup (Pkg.activate, instantiate, update, using CTBenchmarks) is handled by the workflow

function run()
results = CTBenchmarks.benchmark(;
problems=[
:beam,
:chain,
:double_oscillator,
# :ducted_fan,
:electric_vehicle,
:glider,
:insurance,
:jackson,
:robbins,
:robot,
:rocket,
:space_shuttle,
:steering,
:vanderpol,
],
solver_models=[:ipopt => [:adnlp, :exa], :madnlp => [:adnlp, :exa]],
grid_sizes = [200, 500, 1000, 2000],
disc_methods = [:midpoint],
tol = 1e-8,
ipopt_mu_strategy = "adaptive",
print_trace = false,
max_iter = 1000,
max_wall_time = 500.0
)
println("✅ Benchmark completed successfully!")
return results
end
67 changes: 67 additions & 0 deletions docs/src/core/cpu.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,70 @@ _print_benchmark_log("core-moonshot-cpu") # hide
</div>
</div>
```


## Midpoint

<!-- INCLUDE_ENVIRONMENT:
BENCH_ID = "core-midpoint"
ENV_NAME = BENCH
-->

### 📈 Performance Profile CPU Time

<!-- INCLUDE_FIGURE:
FUNCTION = _plot_profile_default_cpu
ARGS = core-midpoint
-->

<!-- INCLUDE_TEXT:
FUNCTION = _analyze_profile_default_cpu
ARGS = core-midpoint
-->

### 📈 Performance Profile CPU Time: two best combos

<!-- INCLUDE_FIGURE:
FUNCTION = _plot_profile_default_cpu
ARGS = core-midpoint, exa:madnlp, exa:ipopt
-->

<!-- INCLUDE_TEXT:
FUNCTION = _analyze_profile_default_cpu
ARGS = core-midpoint, exa:madnlp, exa:ipopt
-->

### 📈 Performance Profile Iterations

<!-- INCLUDE_FIGURE:
FUNCTION = _plot_profile_default_iter
ARGS = core-midpoint
-->

<!-- INCLUDE_TEXT:
FUNCTION = _analyze_profile_default_iter
ARGS = core-midpoint
-->

### 📊 Tables of Results

<!-- INCLUDE_TEXT:
FUNCTION = _print_benchmark_table_results
ARGS = core-midpoint
-->

```@raw html
<div class="ctdetails" style="margin-bottom: 0.5em; margin-top: 1em;">
<div class="ctdetails-summary" role="button" tabindex="0" aria-expanded="false">ℹ️ Log</div>
<div class="ctdetails-body">
```

```@example BENCH
_print_benchmark_log("core-midpoint") # hide
```

```@raw html
</div>
</div>
```

Loading