Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T21:26:20.000Z (4 months ago)
- Last Synced: 2024-10-13T15:51:11.950Z (3 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)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.
## Environment
| | |
|----------|-------------------------------|
| OS | Ubuntu 22.04, m6i.16xlarge |
| boa | v0.19.1 |
| mlua | v0.10.0 |
| rhai | v1.19.0 |
| rquickjs | v0.6.2 |
| rune | v0.13.4 |
| rustc | v1.81.0 |## Results
![Sort Rust objects](Sort%20Rust%20objects.png)