mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 01:20:20 +02:00
* try to improve result stability by longer runtime
This commit is contained in:
parent
247423400f
commit
74bef61b99
@ -120,7 +120,7 @@ type
|
||||
specialize TArrayHelper<Ty>.Sort(arr);
|
||||
timePassed := (Now - startTime) * SecsPerDay;
|
||||
reps += 1;
|
||||
until not (timePassed < 0.2);
|
||||
until not (timePassed < 3);
|
||||
|
||||
time := timePassed / reps;
|
||||
write(time * 1e3:0:1, ' ms/sort');
|
||||
@ -168,4 +168,3 @@ begin
|
||||
halt(2);
|
||||
end;
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user