Skip to content

Instantly share code, notes, and snippets.

@schwern
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schwern/9964225 to your computer and use it in GitHub Desktop.
Save schwern/9964225 to your computer and use it in GitHub Desktop.
$ ps auwx | head -1
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
$ ps auwx | grep perl
schwern 4311 0.0 0.0 2442000 620 s000 S+ 3:30PM 0:00.00 grep perl
schwern 4309 0.1 1.0 2515688 80204 s001 S 3:30PM 0:00.14 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; sub foo {} foo(); sleep 9999
schwern 4301 0.0 1.0 2525552 88052 s001 S 3:30PM 0:00.14 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; sub foo {} foo(@list); sleep 9999
schwern 4304 0.0 1.0 2525928 80232 s001 S 3:30PM 0:00.47 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; sub foo {} print {$fh} @list; sleep 9999
schwern 4336 0.0 1.0 2517736 80236 s001 S 3:35PM 0:00.47 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; sub foo {} print {$fh} @list, "foo"; sleep 9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment