Skip to content

Instantly share code, notes, and snippets.

@cygx

cygx/bench.csv Secret

Last active October 23, 2016 23:00
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 cygx/db998502d493dfae53c9 to your computer and use it in GitHub Desktop.
Save cygx/db998502d493dfae53c9 to your computer and use it in GitHub Desktop.
month global match split on regex split on string index FORTRAN FORTRAN using NQP builtins
0 35.72 86.74 27.35 2.83 2.35 0.43
2 32.03 66.54 16.35 2.23 1.79 0.42
6 34.00 60.58 12.94 2.26 1.84 0.42
8 23.93 56.86 12.16 1.80 1.80 0.41
9 22.45 39.17 7.61 2.09 1.67 0.38
12 18.33 12.03 7.56 1.73 1.70 0.33
cf https://gist.github.com/cygx/cbb08f0c01a0cc28c9d3
October 2015:
$ perl6 bench.p6
generating input...done.
100000 words parsed in 35.72s (global match)
100000 words parsed in 86.74s (split on regex)
100000 words parsed in 27.35s (split on string)
100000 words parsed in 2.83s (index)
100000 words parsed in 2.35s (FORTRAN)
100000 words parsed in 0.43s (FORTRAN using NQP builtins)
Christmas 2015:
$ perl6 bench.p6
generating input...done.
100000 words parsed in 32.03s (global match)
100000 words parsed in 66.54s (split on regex)
100000 words parsed in 16.35s (split on string)
100000 words parsed in 2.23s (index)
100000 words parsed in 1.79s (FORTRAN)
100000 words parsed in 0.42s (FORTRAN using NQP builtins)
April 2016:
$ perl6 bench.p6
generating input...done.
100000 words parsed in 34s (global match)
100000 words parsed in 60.58s (split on regex)
100000 words parsed in 12.94s (split on string)
100000 words parsed in 2.26s (index)
100000 words parsed in 1.84s (FORTRAN)
100000 words parsed in 0.42s (FORTRAN using NQP builtins)
June 2016
$ perl6 bench.p6
generating input...done.
100000 words parsed in 23.93s (global match)
100000 words parsed in 56.86s (split on regex)
100000 words parsed in 12.16s (split on string)
100000 words parsed in 1.8s (index)
100000 words parsed in 1.8s (FORTRAN)
100000 words parsed in 0.41s (FORTRAN using NQP builtins)
July 2016
$ perl6 bench.p6
generating input...done.
100000 words parsed in 22.45s (global match)
100000 words parsed in 39.17s (split on regex)
100000 words parsed in 7.61s (split on string)
100000 words parsed in 2.09s (index)
100000 words parsed in 1.67s (FORTRAN)
100000 words parsed in 0.38s (FORTRAN using NQP builtins)
October 2016
$ perl6 bench.p6
generating input...done.
100000 words parsed in 18.33s (global match)
100000 words parsed in 12.03s (split on regex)
100000 words parsed in 7.56s (split on string)
100000 words parsed in 1.73s (index)
100000 words parsed in 1.7s (FORTRAN)
100000 words parsed in 0.33s (FORTRAN using NQP builtins)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment