Skip to content

Performance

This page describes the performance characteristics of the Stak Scheme interpreters.

The Stak Scheme interpreter runs 1.6 to 2.3 times slower than Python 3 at computationally heavy tasks depending on its configuration and benchmarks. For all the benchmark results, see the GitHub Action workflow.

  • Baseline: Python 3.13
  • Environment: Ubuntu 24.04, x86-64
BenchmarkStak (minimal 1)Stak (full 2)
Fibonacci number1.80x slower1.98x slower
Integer sum1.61x slower1.87x slower
Tak function2.10x slower2.27x slower

Although Stak Scheme’s minimality comes at the cost of speed, it is very fast at startup.

This means that Stak Scheme is suitable for embedding many small pieces of Scheme programs in Rust due to its tiny overhead on program initialization.

  • Environment: Ubuntu 24.04, x86-64
BenchmarkStak (full 2)Lua 5.4
Empty program0.534 us48.9 us
Integer addition22.9 us50.0 us
  1. Minimal: Integer-only support + standard libraries based on libc

  2. Full: 64-bit floating-point number support + standard libraries based on the std library in Rust 2