INF205/lab_2/11/time_Nm.nu

7 lines
232 B
Plaintext

for x in [1024 512 256 128 64 32 16 8 4 2] {
let filename = 'const_Nm_timings.csv';
$x | into string | save --append $filename;
", " | save --append $filename;
let m = 2048000000 / $x;
time -f %e -a -o $filename ./memleak $x $m;
};