Skip to content

Instantly share code, notes, and snippets.

@melezhik
Created June 22, 2021 20:42
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 melezhik/a147c176b607f643806f2ceded5cb864 to your computer and use it in GitHub Desktop.
Save melezhik/a147c176b607f643806f2ceded5cb864 to your computer and use it in GitHub Desktop.
benchmark for grep( /:i <!after i> e / )
[root@23f7111def19 r3tool]# SP6_FORMAT_TERSE=1 tomty --env=2020_12 pull_4383
load configuration from /root/projects/r3tool/.tomty/env/config.2020_12.pl6
index updated from file:///root/repo/api/v1/index
cat $root_dir/task.bash
$RAKUBIN -v
time $RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; $txt.grep( /:i <!after i> e / ) for 1..100'
Welcome to Rakudo(tm) v2020.12.
Implementing the Raku(tm) programming language v6.d.
Built on MoarVM version 2020.12.
stderr:
real 0m0.783s
user 0m0.762s
sys 0m0.095s
[root@23f7111def19 r3tool]# SP6_FORMAT_TERSE=1 tomty --env=2021_06 pull_4383
load configuration from /root/projects/r3tool/.tomty/env/config.2021_06.pl6
index updated from file:///root/repo/api/v1/index
cat $root_dir/task.bash
$RAKUBIN -v
time $RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; $txt.grep( /:i <!after i> e / ) for 1..100'
Welcome to ๐‘๐š๐ค๐ฎ๐๐จโ„ข v2021.05-43-g4887a169b.
Implementing the ๐‘๐š๐ค๐ฎโ„ข programming language v6.d.
Built on MoarVM version 2021.06.
stderr:
real 0m0.822s
user 0m0.840s
sys 0m0.113s
@melezhik
Copy link
Author

[root@23f7111def19 r3tool]# SP6_FORMAT_TERSE=1 tomty --env=2021_06 pull_4383
load configuration from /root/projects/r3tool/.tomty/env/config.2021_06.pl6
index updated from file:///root/repo/api/v1/index
cat $root_dir/task.bash

$RAKUBIN -v

$RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; $txt.grep( /:i <!after i> e / ) for 1..1000; say now - INIT now'

Welcome to ๐‘๐š๐ค๐ฎ๐๐จโ„ข v2021.05-43-g4887a169b.
Implementing the ๐‘๐š๐ค๐ฎโ„ข programming language v6.d.
Built on MoarVM version 2021.06.
3.7852381
[root@23f7111def19 r3tool]# SP6_FORMAT_TERSE=1 tomty --env=2021_05 pull_4383
load configuration from /root/projects/r3tool/.tomty/env/config.2021_05.pl6
index updated from file:///root/repo/api/v1/index
cat $root_dir/task.bash

$RAKUBIN -v

$RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; $txt.grep( /:i <!after i> e / ) for 1..1000; say now - INIT now'

Welcome to Rakudo(tm) v2021.05.
Implementing the Raku(tm) programming language v6.d.
Built on MoarVM version 2021.05.
3.5102287

@melezhik
Copy link
Author

[root@23f7111def19 r3tool]# SP6_FORMAT_TERSE=1 tomty --env=2021_05 pull_4383
load configuration from /root/projects/r3tool/.tomty/env/config.2021_05.pl6
index updated from file:///root/repo/api/v1/index
cat $root_dir/task.bash

$RAKUBIN -v

#$RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; $txt.grep( /:i <!after i> e / ) for 1..1000; say now - INIT now'

$RAKUBIN -e 'my $txt = slurp "{@*ARGS[0]}"; $txt.grep( /:i <!after i> e / ) for 1..1000; say now - INIT now' $root_dir/words

Welcome to Rakudo(tm) v2021.05.
Implementing the Raku(tm) programming language v6.d.
Built on MoarVM version 2021.05.
0.0699964
[root@23f7111def19 r3tool]# SP6_FORMAT_TERSE=1 tomty --env=2021_06 pull_4383
load configuration from /root/projects/r3tool/.tomty/env/config.2021_06.pl6
index updated from file:///root/repo/api/v1/index
cat $root_dir/task.bash

$RAKUBIN -v

#$RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; $txt.grep( /:i <!after i> e / ) for 1..1000; say now - INIT now'

$RAKUBIN -e 'my $txt = slurp "{@*ARGS[0]}"; $txt.grep( /:i <!after i> e / ) for 1..1000; say now - INIT now' $root_dir/words

Welcome to ๐‘๐š๐ค๐ฎ๐๐จโ„ข v2021.05-43-g4887a169b.
Implementing the ๐‘๐š๐ค๐ฎโ„ข programming language v6.d.
Built on MoarVM version 2021.06.
0.0768358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment