Performance and Profiling Configuration

Runtime

YAML pathTypeDefaultAllowed valuesMeaning
runtime.print_thread_configBooltruetrue, falsePrint Julia/BLAS thread summary at startup.
runtime.julia_threadsStringkeepkeep, default, off, auto, or integer-like stringJulia thread policy for runner setup. Requires process startup (--threads) or script re-exec.
runtime.blas_threadsStringkeepkeep, default, off, auto, or integer-like stringBLAS thread policy for runner setup and can be applied at runtime.

For examples/matpower_import.jl, Julia thread priority is:

  1. CLI override: --julia-threads=<N|auto|keep>
  2. Environment override: SPARLECTRA_JULIA_THREADS
  3. YAML runtime.julia_threads
  4. keep current process setting

Example startup commands:

julia --threads=8 --project=. examples/matpower_import.jl
julia --project=. examples/matpower_import.jl --julia-threads=8
$env:JULIA_NUM_THREADS = "8"
julia --project=. examples/matpower_import.jl

Output configuration

YAML pathTypeDefaultAllowed valuesMeaning
output.console_summaryBooltruetrue, falsePrint compact run summary to console.
output.console_auto_profileSymbol/Stringcompactoff, compact, fullMATPOWER auto-profile console detail.
output.console_diagnosticsSymbol/Stringcompactoff, compact, summary, fullDiagnostic detail on console.
output.console_q_limit_eventsSymbol/Stringsummaryoff, summary, fullQ-limit/PV→PQ event console detail.
output.console_max_rowsInt5non-negative integerMax rows in compact console tables.
output.logfile_resultsSymbol/Stringoffoff, compact, classic, fullSolved result table detail in logfile.
output.logfile_diagnosticsSymbol/Stringcompactoff, compact, fullDiagnostic logfile detail.
output.logfile_performanceSymbol/Stringcompactoff, compact, fullPerformance profile logfile detail.
output.logfile_warningsSymbol/Stringtableoff, summary, table, fullWarning representation in logfile.

Diagnostics configuration

YAML pathTypeDefaultAllowed valuesMeaningCost notes
diagnostics.log_effective_configBoolfalsetrue, falseLog merged effective configuration.true: low
diagnostics.console_summaryBooltruetrue, falseEmit compact run summary to console.true: low
diagnostics.console_auto_profileSymbol/Stringcompactoff, compact, fullAuto-profile detail on console.full: medium
diagnostics.console_diagnosticsSymbol/Stringcompactoff, compact, summary, fullSolver diagnostics detail on console.full: medium/high
diagnostics.console_q_limit_eventsSymbol/Stringsummaryoff, summary, fullPV→PQ event verbosity on console.full: medium
diagnostics.console_max_rowsInt20non-negative integerRow cap for console diagnostics tables.low
diagnostics.logfile_diagnosticsSymbol/Stringfulloff, compact, fullDiagnostic logfile detail level.full: medium/high

Performance configuration

YAML pathTypeDefaultAllowed valuesMeaning
performance.enabledBooltruetrue, falseEnable performance instrumentation.
performance.levelSymbol/Stringiterationoff, summary, iteration, fullInstrumentation detail level.
performance.print_to_consoleBooltruetrue, falseEmit performance output to console.
performance.write_to_logfileBooltruetrue, falseEmit performance output to logfile.
performance.show_allocationsBoolfalsetrue, falseInclude allocation stats.
performance.show_iteration_tableBooltruetrue, falseShow iteration-level timing table.
performance.compact_loggingBooltruetrue, falseCompact performance logging format.
performance.skip_reference_comparisonBoolfalsetrue, falseSkip voltage/reference comparisons for speed.
performance.skip_expensive_diagnosticsBooltruetrue, falseSkip high-cost diagnostics.
performance.skip_branch_neighborhood_reportBooltruetrue, falseSkip branch neighborhood report.
performance.max_diagnostic_rowsInt25non-negative integerRow cap for diagnostics tables.

Benchmark configuration

YAML pathTypeDefaultAllowed valuesMeaning
benchmark.enabledBooltruetrue, falseEnable benchmark mode.
benchmark.methodsVector{Symbol/String}[rectangular]rectangular (current PF core)Methods benchmarked.
benchmark.secondsFloat642.0positive realBenchmark target duration.
benchmark.samplesInt50positive integerMax benchmark samples.
benchmark.show_onceBoolfalsetrue, falseRun one full visible solve before timing loop.
benchmark.show_once_outputSymbol/Stringclassicclassic, dataframe, compactOutput format for show_once.
benchmark.show_once_max_nodesInt0non-negative integerRow cap for one-shot output.