Skip to content

Commit e330ef8

Browse files
committed
docs: link reproducible comparisons and qualify the legacy chart
1 parent 27bea79 commit e330ef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ English | [日本語](README_JA.md)
1414

1515
Lua-CSharp is a library that provides a Lua interpreter implemented in C#. By integrating Lua-CSharp, you can easily embed Lua scripts into your .NET applications.
1616

17-
Lua-CSharp leverages the latest C# features, designed with low allocation and high performance in mind. It is optimized to deliver maximum performance when used for interoperation between C# and Lua in C# applications. Below is a benchmark comparison with [MoonSharp](https://github.com/moonsharp-devs/moonsharp/) and [NLua](https://github.com/NLua/NLua):
17+
Lua-CSharp uses modern C# features to reduce interpreter and embedding overhead. The [.NET 10 benchmark guide](sandbox/Benchmark/README.md) separates execution, compilation and startup costs, with [selected MoonSharp/NuLua Lua 5.2 results](sandbox/Benchmark/results/2026-10-27/README.md) and reproducible commands. The earlier MoonSharp/NLua chart below uses a different benchmark setup:
1818

1919
![img](docs/Benchmark.png)
2020

21-
MoonSharp generally provides good speed but incurs significant allocations due to its design. NLua, being a C-binding implementation, is fast, but introduces substantial overhead when interacting with the C# layer. Lua-CSharp, fully implemented in C#, allows for seamless interaction with C# code without additional overhead. Moreover, it operates reliably in AOT environments since it does not rely on IL generation.
21+
Performance and allocation costs depend on the workload and embedding API. The interpreter runs in managed C# and supports AOT environments without runtime IL generation.
2222

2323
## Features
2424

0 commit comments

Comments
 (0)