Skip to content

feat: Add comparative kernel benchmarks#347

Merged
johnchandlerburnham merged 1 commit intojcb/rust-kernelfrom
sb/rust-kernel
Mar 24, 2026
Merged

feat: Add comparative kernel benchmarks#347
johnchandlerburnham merged 1 commit intojcb/rust-kernelfrom
sb/rust-kernel

Conversation

@samuelburnham
Copy link
Member

@samuelburnham samuelburnham commented Mar 24, 2026

Adds a comparative kernel benchmark rig for lean4 in C++, lean4lean, nanoda, ix-lean, and ix-rust. Run with cd Benchmarks/Kernel && lake exe bench-kernel

Notes:

  • ix-lean and ix-rust error when checking Init for now, but they work for decls like Nat.add_comm
  • ix-rust includes compilation and typechecking in Ix.CompileM.rsCompileEnvFFI, but for proper measurement the typechecking should be split into a separate function
  • Only nanoda and ix-rust support parallelism AFAIK and it is enabled by default for both. To measure everything single threaded pass -j 1 to lake exe bench-kernel

@johnchandlerburnham johnchandlerburnham merged commit 8b0d672 into jcb/rust-kernel Mar 24, 2026
14 of 16 checks passed
@johnchandlerburnham johnchandlerburnham deleted the sb/rust-kernel branch March 24, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants