File: memory_test.pl

package info (click to toggle)
libio-interactive-perl 0.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 96 kB
  • ctags: 6
  • sloc: perl: 132; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 170 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

use IO::Interactive;

print "Testing memory consumption as process $$\n";

$SIG{INT} = sub { exit };

while( 1 )
	{
	print { interactive } 'a' x 4096;
	}