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

Implement some GDScript benchmarks #41

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Implement some GDScript benchmarks #41

merged 1 commit into from
Nov 6, 2023

Conversation

guilhermevfa
Copy link
Contributor

Implements

🟪Algorithm🟪 [Simple for loop add]: GDscript: Run 1,000,000 iterations of a for loop adding a number.
🟪Algorithm🟪 [Simple for loop call]: GDScript: Run 1,000,000 iterations calling a function.
🟪Algorithm🟪 [Lambda performance]: GDscript: Make a simple lambda function and call it 1000 times.

from GDScript section in #36 benchmarks list.

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. Execution time for all benchmarks is around 50 ms on an i9-13900K.

Execution time for Lambda performance is however very low (0.3 ms). We should probably do 10,000 calls of the lambda if not more.

Co-authored-by: BrunoArmondBraga <abraga3547bruno@gmail.com>
@guilhermevfa
Copy link
Contributor Author

Changed to 1,000,000 lambda calls. I see no reason to keep it different from the number of regular function calls.

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.

2 participants