Skip to content

Instantly share code, notes, and snippets.

@ugexe
Created July 20, 2017 17:02
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 ugexe/f0b471d176de8eb955bbbd804f5bca09 to your computer and use it in GitHub Desktop.
Save ugexe/f0b471d176de8eb955bbbd804f5bca09 to your computer and use it in GitHub Desktop.
perl6-valgrind-m -e 'for (50_000) -> $limit {my $x; my $y = "x" x 100; $x ~= $y for (1..$limit); say "$limit: ", now - ENTER now}'
==68022== HEAP SUMMARY:
==68022== in use at exit: 40,357,047 bytes in 6,166 blocks
==68022== total heap usage: 297,430 allocs, 291,264 frees, 10,026,983,039 bytes allocated
==68022==
==68022== LEAK SUMMARY:
==68022== definitely lost: 16 bytes in 1 blocks
==68022== indirectly lost: 99 bytes in 1 blocks
==68022== possibly lost: 213,152 bytes in 3,808 blocks
==68022== still reachable: 40,125,963 bytes in 2,203 blocks
==68022== suppressed: 17,817 bytes in 153 blocks
==68022== Rerun with --leak-check=full to see details of leaked memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment