cleanup todo.txt

This commit is contained in:
Araq 2017-12-07 15:58:46 +01:00
commit 226532f8f3
5 changed files with 7666 additions and 3 deletions

View file

@ -0,0 +1,16 @@
#include system/ansi_c
import strutils, data
proc main =
var m = 0
for i in 0..1000_000:
let size = sizes[i mod sizes.len]
let p = newString(size)
# c_fprintf(stdout, "iteration: %ld size: %ld\n", i, size)
main()
echo formatSize getOccupiedMem(), " / ", formatSize getTotalMem()