Skip to content

Instantly share code, notes, and snippets.

@jeff-hobbs
Created April 2, 2013 21:32
Show Gist options
  • Save jeff-hobbs/5296407 to your computer and use it in GitHub Desktop.
Save jeff-hobbs/5296407 to your computer and use it in GitHub Desktop.
#!/usr/bin/env tclsh
set chunk 64
set i 0
while {1} {
set [incr i] [string repeat a [expr {$chunk*1024}]]
puts "Allocated [expr {$i*$chunk}]K" ; flush stdout
after 50
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment