Kil-C vs Rust: 16 of 16 programs faster

2026-11-30来源 dev.toEnglish
Kil-C vs Rust: 16 of 16 programs faster

Kil-C vs Rust: all 16 races, bars drawn to scale

We ran the same 16 programs in Kil-C and Rust. Every output was checked byte for byte against the other. Kil-C was faster on all 16.

"Faster" means more than 3% apart. Anything closer counts as level.

The results

Program Kil-C Rust Kil-C ahead by
Recursion 15 ms 17 ms 1.09×
Whole-number math 7.7 ms 9.5 ms 1.24×
Sorting 16 ms 29 ms 1.83×
Counting words 50 ms 56 ms 1.12×
Reading a CSV file 72 ms 107 ms 1.49×
Number crunching 17 ms 29 ms 1.72×
Image calculation 121 ms 356 ms 2.93×
Physics simulation 3.5 ms 3.7 ms 1.05×
Grid simulation 75 ms 82 ms 1.10×
Building text 27 ms 48 ms 1.79×
Counting and grouping 56 ms 124 ms 2.21×
Bank transactions 110 ms 150 ms 1.36×
Sales report 380 ms 440 ms 1.16×
Event processing 378 ms 505 ms 1.34×
Log analysis 239 ms 324 ms 1.35×
Invoice batch 59 ms 85 ms 1.45×

How we measured

  • Kil-C 0.32.3 vs Rust 1.100.0, measured Nov 29, 2026.
  • Each time is the middle of repeated runs.
  • Every output is checked byte for byte, so both sides did the same work.

Where Rust still has a case

  • The biggest gains come from particular kinds of loop. Not every program will see 2.9×.
  • Rust used 7% less energy on whole-number math. We publish that too.

Watch all 16 races: https://kilc.dev/#sixteen
Full test table: https://kilc.dev/#tests

原文:https://www.a8q9.cn/en/article/kil-c-vs-rust-16-of-16-programs-faster-dc90d1.html

相关文章