Skip to content

Commit

Permalink
Add Mir and TinyCC to performance benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Oct 15, 2024
1 parent bda56a5 commit 1e036b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/performance/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The Godot Sandbox is an extension to the [Godot Engine](https://godotengine.org/

![alt text](/img/performance/100k-floats.png)

We can see that the Godot Sandbox using libriscv is 4x faster than GDScript at processing floats in this benchmark. However, when a Godot engine helper function is used (`fill(1.0)` in this instance), GDScript can have native performance.
We can see that the Godot Sandbox using libriscv is 7.5x faster than GDScript at processing floats in this benchmark. A C jit-compiler called Mir was 4x faster than GDScript after being embedded into the Sandbox. TinyCC, a fast C compiler, can also be embedded into the Sandbox, and was 2.7x faster than GDScript. However, when a Godot engine helper function is used (`fill(1.0)` in this instance), GDScript can have native performance.

I took that as a challenge, and wrote a `memset32` function that initializes the array with and then copies increasingly larger parts until done.
```cpp
Expand Down
Binary file modified static/img/performance/100k-floats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1e036b4

Please sign in to comment.