| Features | - just-in-time compiler
- about 4x faster than CPython 3.11 on average
- Python 2.7 and 3.11 interpreters, with 3.12 in beta
- much of the CPython C API, so NumPy and scikit-learn run
- CFFI support
- Stackless micro-threads and greenlets
- lower memory use for large programs
- x86, ARM, AArch64, RISC-V, PowerPC and s390x
| - no global interpreter lock: Ruby code and thread-safe C extensions run in parallel
- most C extensions work out of the box, including database drivers
- Native Standalone with fast startup, JVM Standalone with best peak performance
- interoperability with Java, JavaScript, Python and WebAssembly
- profiler, debugger and VisualVM support
- passes around 98% of ruby/spec
- installs with rbenv, ruby-build, asdf, mise, RVM or ruby-install, and in CI with ruby/setup-ruby
|
| Limitations | - Short-running processes don't speed up, because the JIT compiler needs a few seconds to warm up.
- Code that spends its time in C libraries rather than Python code doesn't get faster.
- Modules that use the CPython C API will probably work but don't get a JIT speedup.
- It doesn't support CPython's reference-counting semantics, so objects (such as open files) are released only when the garbage collector runs.
| - Not yet 100% compatible with MRI 4.0
- Needs a fair amount of warmup to reach peak performance
- Runs on Linux (x86_64 and AArch64) and macOS on AArch64 only
|