i started a testprogram between gdscript, C# and gdnative C++, maybe interesting for someone and to learn gdnative?
This is a changed version of the Godot gdnative C++-example.
I changed to get a little benchmark-test to see the difference in speed between gdscript and C++ and to learn gdnative C++.
the test is to draw a mandelbrot - the goal was not to get a good mandelbrotprogram, the goal was to have a comparison in speed.
left is the mandelbrot from the gdscript, middle C# and right the one from gdnative C++.
the result is shown in milliseconds with print. gdnative C++ is in my tests ~ 20-25 times faster(in debug) and ~40-45 (in release) as gdscript.
C# a little slower than C++.
maybe in other tasks except mandelbrot it differs. if theres something wrong please tell me...
testscenario:
Godot 3.4
Window 10
Visual Studio 2019
scons
i uploaded on Github
https://github.com/system-er/godotgdscriptcppcsharpmandelbrotbenchmark

18.04.2022:
Added test for godot-rust:
https://github.com/system-er/godot-rust-gdscript-mandelbrotbenchmark