mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 09:30:35 +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);
|
specialize TArrayHelper<Ty>.Sort(arr);
|
||||||
timePassed := (Now - startTime) * SecsPerDay;
|
timePassed := (Now - startTime) * SecsPerDay;
|
||||||
reps += 1;
|
reps += 1;
|
||||||
until not (timePassed < 0.2);
|
until not (timePassed < 3);
|
||||||
|
|
||||||
time := timePassed / reps;
|
time := timePassed / reps;
|
||||||
write(time * 1e3:0:1, ' ms/sort');
|
write(time * 1e3:0:1, ' ms/sort');
|
||||||
@ -168,4 +168,3 @@ begin
|
|||||||
halt(2);
|
halt(2);
|
||||||
end;
|
end;
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user