| 1 |
writeInfoLine: "sort..." |
| 2 |
|
| 3 |
numberOfChecks = 70 |
| 4 |
durations# = zero# (numberOfChecks) |
| 5 |
for icheck from 1 to numberOfChecks |
| 6 |
n = icheck |
| 7 |
result$ = Praat test: "TimeSort", string$ (10^7 / n), string$ (n), "", "" |
| 8 |
durations# [icheck] = extractNumber (result$, "") |
| 9 |
appendInfoLine (n, " ", durations# [n]) |
| 10 |
endfor |
| 11 |
for icheck from 1 to 8 |
| 12 |
n = 10^icheck |
| 13 |
result$ = Praat test: "TimeSort", string$ (max (1, 10^7 / n)), string$ (n), "", "" |
| 14 |
duration = extractNumber (result$, "") |
| 15 |
appendInfoLine (n, " ", duration) |
| 16 |
endfor |
| 17 |
|
| 18 |
appendInfoLine: "mean ", mean (durations#), " nanoseconds" |
| 19 |
|
| 20 |
;for n to 1000 |
| 21 |
appendInfoLine: "OK" |