Created
June 22, 2021 18:32
-
-
Save melezhik/b291f58fb648e4f6e4f679346ab0b97e to your computer and use it in GitHub Desktop.
grep.regexp example v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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"; for (1..10) { my (@m) = $txt.grep( { m:i/ <!after i> e / } ) }' | |
Welcome to ๐๐๐ค๐ฎ๐๐จโข v2021.05-43-g4887a169b. | |
Implementing the ๐๐๐ค๐ฎโข programming language v6.d. | |
Built on MoarVM version 2021.06. | |
stderr: | |
real 0m0.430s | |
user 0m0.465s | |
sys 0m0.080s | |
[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"; for (1..10) { my (@m) = $txt.grep( { m:i/ <!after i> e / } ) }' | |
Welcome to Rakudo(tm) v2020.12. | |
Implementing the Raku(tm) programming language v6.d. | |
Built on MoarVM version 2020.12. | |
stderr: | |
real 0m0.405s | |
user 0m0.483s | |
sys 0m0.069s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[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
echo .grep
time $RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; for (1..10) { my (@m) = $txt.grep( { m:i/ <!after i> e / } ) }' 2>&1
echo end
echo "grep .contains"
time $RAKUBIN -e 'my $txt = slurp "/usr/share/dict/words"; for (1..10) { my (@m) = $txt.grep( *.contains( /:i <!after i> e / ) ) }' 2>&1
echo end
Welcome to ๐๐๐ค๐ฎ๐๐จโข v2021.05-43-g4887a169b.
Implementing the ๐๐๐ค๐ฎโข programming language v6.d.
Built on MoarVM version 2021.06.
.grep
stderr:
real 0m0.455s
user 0m0.518s
sys 0m0.066s
end
grep .contains
stderr:
real 0m0.376s
user 0m0.448s
sys 0m0.061s
end