Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Mir benchmark
Browse files Browse the repository at this point in the history
fwsGonzo committed Oct 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent bda56a5 commit 1a6bdc5
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
@@ -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. 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
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 1a6bdc5

Please sign in to comment.