Skip to content

puthre/gdscript_performance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot performance tests

This project contains a bunch of tests to measure Godot and GDScript performance for multiple engine versions at once.

Test categories

There are two categories of tests:

  • Micro benchmarks: these are run in batches and measure how fast GDScript performs specific operations. They are purely time-based and their results are in microseconds. For example, how long it takes to assign a dictionary element.

  • Scale benchmarks: these are run individually. They measure speed and memory for a given metric over time. For example, how many bunnies can Godot render before getting under 15 fps.

You will also notice there are multiple projects which contain almost identical tests. This is because major versions of Godot introduce compatibility changes, and trying to keep the same project for all is a hassle. However, some scripts can be copied more safely because Godot differences are centralized into a polyfills.gd script, which wraps functions. That also means the version containing the most tests is the one for the latest Godot version, while previous ones are legacy and backports.

Running tests

All those tests can be run automatically by running the run.py script. This script contains some options at its top, which are described within the file. The script will also run the tests for all Godot versions that you can provide. They are also listed in the script, but you may get them under a folder of yours before your start. You can also comment out versions you don't want to run.

Note that some tests may not be available for some Godot versions.

Displaying results

Results can be shown by running the viewer. This is a Godot 3.0.6 application which will look into the results of previously-run tests and display a nice graph of the results over time.

About

Tests to measure Godot performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • GDScript 91.5%
  • Python 8.5%