INF205/lab_2/10_memleak/time_Nm.nu

6 lines
187 B
Plaintext
Raw Normal View History

2024-02-27 17:37:22 +00:00
for x in [1024 512 256 128 64 32 16 8 4 2] {
$x | into string | save --append log.csv;
", " | save --append log.csv;
let m = 2048000000 / $x;
time -f %e -a -o log.csv ./memleak $x $m;
};