Compiler optimizerC17 · Native CPU execution

Code optimization workspace

Optimize. Verify. Compare.

Try changes to your C program. Keep the original unless a candidate passes verification and demonstrates a reliable improvement.

Loading examples…

1 · Choose code

Set up a run

Choose an example to see its source.

Use your own code

Upload a C17 optimizer package, then select Run uploaded package.

Download example package (.zip)

Required ZIP format

Include submission.json, source files and test fixtures. Use uncompressed ZIP entries (ZIP_STORED) and regular files only. Limit: 100 files, 10 MiB extracted, 12 MiB ZIP.

No package uploaded.

2 · Run optimization

Balances measurement stability with meaningful improvements for everyday runs. Correctness and required reviews always apply.

Policy explanations and criteria

The selected policy opens below. Expand another to compare its criteria.

Strict · Strongest evidence

Use when you prefer to keep the original unless measurements are especially stable and the improvement is substantial. Useful for conservative comparisons on a quiet worker.

Maximum measurement variability
10%
Minimum gain in the agent’s objective
Greater than 10%
Maximum memory regression
10%
Maximum runtime regression for memory-focused proposals
5%
Minimum median runtime of each program
0.5 ms
Significance level before comparison adjustments
2.5%
Minimum combined weighted gain
Greater than 2%
Balanced · Default

Use for everyday runs. It allows moderate variation while requiring a meaningful gain and statistical evidence. A large speedup can still be rejected if variability exceeds the policy limit.

Maximum measurement variability
15%
Minimum gain in the agent’s objective
Greater than 5%
Maximum memory regression
20%
Maximum runtime regression for memory-focused proposals
10%
Minimum median runtime of each program
0.5 ms
Significance level before comparison adjustments
5%
Minimum combined weighted gain
Greater than 1%
Relaxed · More tolerant

Use for exploratory runs or short programs with noisier timings. It tolerates more variation and smaller gains, making candidates more likely to qualify. It accepts weaker statistical evidence, so an apparent gain is less certain to repeat.

Maximum measurement variability
30%
Minimum gain in the agent’s objective
Greater than 3%
Maximum memory regression
30%
Maximum runtime regression for memory-focused proposals
15%
Minimum median runtime of each program
0.5 ms
Significance level before comparison adjustments
10%
Minimum combined weighted gain
Greater than 0.5%
What the criteria mean
Measurement variability
Typical distance from the median, divided by the median (MAD / median). This is not the difference between the fastest and slowest run. Runtime variability is checked for both programs; memory-focused proposals also check memory variability.
Gain in the agent’s objective
Runtime reduction for performance and architecture proposals; memory reduction for memory-focused proposals. Paired measurements must support a gain above the threshold. A faster median alone is insufficient.
Regression allowances
The allowed increase in memory, checked for both median and peak measurements. Memory-focused proposals also have a runtime regression limit. These allowances do not guarantee acceptance: combined gains must still pass selection.
Minimum median runtime
Both the original and candidate must run long enough to measure. The minimum is also at least 100 clock ticks, regardless of preset.
Significance level
A smaller level requires stronger statistical evidence. The benchmark and final selection adjust this level for multiple workload and candidate comparisons. This is not the probability that an individual candidate is correct.
Combined weighted gain
Final selection combines runtime and memory improvements. Default weights are 70% runtime and 30% memory; operator settings can change them. The combined gain must exceed the policy threshold with statistical support.

Every benchmark workload must pass. All policies retain correctness and sanitizer checks, required reviewer approval, native execution, artifact integrity, and execution limits. A more relaxed preset never guarantees selection.

Preset thresholds and custom values are fixed when you submit. Choose New run to change it; saved runs keep their original criteria.

Execution target
Checking target…
Agent backend
Not recorded
Performance evidence
No run measurements yet

Checking availability…

Code preview

Read only

Choose an example or upload a package to preview its source.