https://github.com/khvzak/script-bench-rs
Rust embedded scripting languages benchmark
https://github.com/khvzak/script-bench-rs
lua luau rhai rune rust
Last synced: 7 months ago
JSON representation
Rust embedded scripting languages benchmark
- Host: GitHub
- URL: https://github.com/khvzak/script-bench-rs
- Owner: khvzak
- Created: 2021-11-20T20:26:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T21:26:20.000Z (about 1 year ago)
- Last Synced: 2024-10-13T15:51:11.950Z (12 months ago)
- Topics: lua, luau, rhai, rune, rust
- Language: Rust
- Homepage:
- Size: 652 KB
- Stars: 39
- Watchers: 4
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust scripting languages benchmark
The project goal is to benchmark most popular embedded scripting languages for Rust.
- [boa](https://boajs.dev)
- [mlua](https://crates.io/crates/mlua) (Lua 5.4 and Luau)
- [rhai](https://crates.io/crates/rhai)
- [rquickjs](https://crates.io/crates/rquickjs)
- [rune](https://crates.io/crates/rune)
- [wasmi](https://crates.io/crates/wasmi)
- [wasmtime](https://crates.io/crates/wasmtime)The benchmark is designed to cover not only the performance of code evaluation but interoperability with Rust too.
## Getting your own results
Simply run the `bench.py` script to generate images. It requires `cargo criterion` and `python3-matplotlib` package installed.
You also must have `wasm32-unknown-unknown` target installed for webassembly benchmarks.
## Environment
| | |
|----------|-------------------------------|
| OS | Ubuntu 22.04, m6i.16xlarge |
| rustc | v1.83.0 |
| boa | v0.19.1 |
| mlua | v0.10.2 |
| rhai | v1.20.0 |
| rquickjs | v0.8.1 |
| rune | v0.13.4 |
| wasmi | v0.40.0 |
| wasmtime | v27.0.0 |## Results

[//]: # 1733534949