Fix speed clarification for lune vs bun

This commit is contained in:
Erica Marigold 2024-07-06 17:33:03 +05:30
parent 507875de44
commit 88b5366c92
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -57,7 +57,7 @@ Theres been a lot of talk about [Bun](https://bun.sh), a fast and modern Java
![lune crypto benchmark](./lune_bench.png "A benchmark of a SHA-256 implementation in Lune and Bun")
For the Luau script, Im using [Lune](https://github.com/lune-org/lune) as the runtime (Lune is similar to what Node accomplishes for JavaScript, its a script runtime with a well-designed standard library of APIs and other features) and [luau-hashing](https://github.com/dekkonot/luau-hashing) for the SHA-256 implementation. For Bun, Im using their native crypto APIs. Lune is faster than Bun by **5 orders of magnitude**, and the benchmark is rigged against Lune, since were comparing a pure Luau implementation to a native zig API.
For the Luau script, Im using [Lune](https://github.com/lune-org/lune) as the runtime (Lune is similar to what Node accomplishes for JavaScript, its a script runtime with a well-designed standard library of APIs and other features) and [luau-hashing](https://github.com/dekkonot/luau-hashing) for the SHA-256 implementation. For Bun, Im using their native crypto APIs. Lune is **5 times faster** than Bun, and the benchmark is rigged against Lune, since were comparing a pure Luau implementation to a native zig API.
The [Lynx](https://lynx.land) web framework for Lune is **3 times faster** than Express on Node.