Performance

The Rue compiler is designed for fast compilation. This dashboard tracks compilation performance over time, helping detect regressions and measure the impact of optimizations.

Compilation Time Trend

Total compilation time across the last 20 commits. Lower is better.

Compilation Time Over Recent Commits1664.8ms1331.9ms998.9ms665.9ms333.0ms0.0ms?????????

Time by Compiler Pass

Breakdown of where compilation time is spent in the most recent benchmark run.

Compilation Time by Pass(commit: ?)480.0mslexer (0%)parser (2%)astgen (0%)sema (1%)cfg (0%)codegen (2%)linker (95%)Total: 505.1ms

Methodology

These benchmarks are run automatically on every commit to the main branch. Each benchmark is executed multiple times to reduce noise, and both mean and standard deviation are recorded.

Benchmark Suite

The benchmark corpus includes hand-crafted stress tests that exercise different parts of the compiler:

  • many_functions - 100+ functions to stress function handling
  • deep_nesting - Deeply nested blocks and expressions
  • large_structs - Many struct types with multiple fields
  • arithmetic_heavy - Lots of arithmetic expressions
  • control_flow - Complex if/while/match patterns

Environment

Benchmarks run on GitHub Actions runners. While there is some variability between runs, running multiple iterations helps smooth out noise.