how to measure execution speed in gd code?-2

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By eaglecat
:warning: Old Version Published before Godot 3 was released.

I tried this. but it’s sooo fast that this returns only 0 or 1
is there more sesitive mothod?

:bust_in_silhouette: Reply From: Zylann

Try to run your code in a for loop 10000 times, then subtract the cost of the for loop itself. That should give you an estimate :slight_smile:

oh. nice idea! I think It’s best method for now.

eaglecat | 2016-04-05 00:46

:bust_in_silhouette: Reply From: volzhs

There is a plan for profiler at 2.1 release.

good to hear that

eaglecat | 2016-04-05 00:47