2021-05-01, 07:10 PM
2021-04-30: RUN_TIMING
This is a simplified way to get many statistics comparing two bits of [pawn]
Will output something like:
Timing "Version 1 ()"...
__________Mean = 78.00ns
__________Mode = 76.00ns
________Median = 78.00ns
_________Range = 9.00ns
Timing "Version 2 (=)"...
__________Mean = 94.00ns
__________Mode = 94.00ns
________Median = 94.00ns
_________Range = 15.00ns
If you don?t understand statistics, pick the one with the lowest Mean, or better yet learn statistics.
There is an optional second parameter to control the number of loops if the experiments run too quickly or slowly:
This is a simplified way to get many statistics comparing two bits of [pawn]
Quote:
RUN_TIMING("Version 1 ()")
{
____a = b 5;
}
RUN_TIMING("Version 2 (=)")
{
____a = b;
____a = 5;
}
Will output something like:
Timing "Version 1 ()"...
__________Mean = 78.00ns
__________Mode = 76.00ns
________Median = 78.00ns
_________Range = 9.00ns
Timing "Version 2 (=)"...
__________Mean = 94.00ns
__________Mode = 94.00ns
________Median = 94.00ns
_________Range = 15.00ns
If you don?t understand statistics, pick the one with the lowest Mean, or better yet learn statistics.
There is an optional second parameter to control the number of loops if the experiments run too quickly or slowly:
Quote:
RUN_TIMING("Version 2 (=)", 100)