Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)