Skip to content

Instantly share code, notes, and snippets.

Created September 5, 2010 20:08
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 anonymous/566282 to your computer and use it in GitHub Desktop.
Save anonymous/566282 to your computer and use it in GitHub Desktop.
pmichaud@orange:~/rakudo$ cat x.pir
.loadlib 'io_ops'
.sub 'main'
$P0 = open 'unixdict.txt', 'r'
$P0.'encoding'('utf8')
$S0 = $P0.'readall'()
$P0.'close'()
$I0 = length $S0
say $I0
.end
pmichaud@orange:~/rakudo$ time parrot_install/bin/parrot x.pir
206403
real 0m2.327s
user 0m2.310s
sys 0m0.020s
pmichaud@orange:~/rakudo$ diff x.pir y.pir
3a4
> load_bytecode 'perl6.pbc'
pmichaud@orange:~/rakudo$ time parrot_install/bin/parrot y.pir
206403
real 0m22.983s
user 0m22.380s
sys 0m0.160s
pmichaud@orange:~/rakudo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment