Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mandelbrot set and Lua ported algorithm benchmarks #68

Merged

Conversation

OverloadedOrama
Copy link
Contributor

@OverloadedOrama OverloadedOrama commented Jun 5, 2024

Adds these benchmarks from #36:

6 new benchmarks have been added:

Name Input 1 Input 2 Input 3
Mandelbrot set algorithm 600x400 image, 1000 iterations
Binary trees 15 18
Hello world
Merkle trees 13 15
Nbody 500000 1000000
Spectral norm 100 500 1000

For the merkle trees, nbody and spectral norm benchmarks, I decided to give inputs lower than those in https://programming-language-benchmarks.vercel.app/lua, as GDScript was taking too long to finish them.

Results on my PC

{
"benchmarks": [
{
"category": "Gdscript > Binary Trees",
"name": "Binary Trees 15",
"results": {
"time": 2911
}
},
{
"category": "Gdscript > Binary Trees",
"name": "Binary Trees 18",
"results": {
"time": 27350
}
},
{
"category": "Gdscript > Hello World",
"name": "Hello World",
"results": {
"time": 0.054
}
},
{
"category": "Gdscript > Mandelbrot Set",
"name": "Mandelbrot Set",
"results": {
"time": 10890
}
},
{
"category": "Gdscript > Merkle Trees",
"name": "Merkle Trees 13",
"results": {
"time": 4463
}
},
{
"category": "Gdscript > Merkle Trees",
"name": "Merkle Trees 15",
"results": {
"time": 26240
}
},
{
"category": "Gdscript > Nbody",
"name": "Nbody 1 000 000",
"results": {
"time": 16890
}
},
{
"category": "Gdscript > Nbody",
"name": "Nbody 500 000",
"results": {
"time": 8322
}
},
{
"category": "Gdscript > Spectral Norm",
"name": "Spectral Norm 100",
"results": {
"time": 4488
}
},
{
"category": "Gdscript > Spectral Norm",
"name": "Spectral Norm 1000",
"results": {
"time": 17880
}
},
{
"category": "Gdscript > Spectral Norm",
"name": "Spectral Norm 500",
"results": {
"time": 18680
}
}
],
"engine": {
"version": "v4.3.beta1.official",
"version_hash": "a4f2ea91a1bd18f70a43ff4c1377db49b56bc3f0"
},
"system": {
"cpu_architecture": "x86_64",
"cpu_count": 12,
"cpu_name": "AMD Ryzen 5 1600 Six-Core Processor",
"os": "Linux"
}
}

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected.

Thanks!

@Calinou Calinou merged commit b77d4b6 into godotengine:main Jun 5, 2024
@OverloadedOrama OverloadedOrama deleted the ported-language-benchmarks branch June 5, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants