Giter VIP home page Giter VIP logo

gdscript_performance's Introduction

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.

gdscript_performance's People

Contributors

zylann avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.