-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGo-MoarVM-i
executable file
·109 lines (87 loc) · 2.87 KB
/
Go-MoarVM-i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/bin/zsh
## update MoarVM backend
# 2023-03-04 cleaned up, specifically for iMac (testing a the static/monthly release)
# 2023-06-02 now iMac tests moar-blead
# not .zshrc?
source $HOME/.profile
cd $HOME/.rakubrew
bin/rakubrew mode shim
# update Rakudo/MoarVM
bin/rakubrew build moar-blead > out.moar 2> err.moar
bin/rakubrew switch moar-blead
bin/rakubrew build zef > out.zef 2> err.zef
bin/rakubrew rehash
rehash
#rakubrew mode shim
#rakubrew switch moar-blead
#X#rakubrew switch moar-2023.02
echo 'clear out old precomp files'
cd ~/.rakubrew/versions/moar-blead
#cd ~/.rakubrew/versions/moar-2023.02
./install/share/perl6/site/bin/cleanup-precomp
rm -rf install/share/perl6/core/precomp/*
./tools/nuke-precomps.raku
rm -rf $HOME/perl6/Rosetta-Code/lib/.precomp
rm -rf $HOME/perl6/Rosetta-Code/libtest/.precomp
cd $HOME/perl6/Rosetta-Code
rm -f run/*
raku -v
git pull
# upgrade modules
bin/Zef-Upgrade
# smoking
echo 'MOAR'
#bin/rc-moar-single [0-Z]/*
bin/rc-moar-parallel [0-Z]/*
# track stats
/bin/echo -n `date +%Y-%m-%d` >> bench/rakudo-builds.txt
/bin/echo -n ' ' >> bench/rakudo-builds.txt
raku -v | head -1 >> bench/rakudo-builds.txt
bin/rc-stats 10 > meta-i/stats.txt
# track 'srand' drift
tail -1 bench/rakudo-builds.txt >> meta-i/srand-drift.txt
raku -e 'srand 123456; say <A B C D E F G>.roll(1000).join' >> meta-i/srand-drift.txt
#grep -v '^20' meta*/srand-drift.txt | sortcnt | cut -c1-80
echo ' '
echo 'Comparison of recent runs:'
rc-stats 4 | grep '^20' - | grep -v Welcome | grep -v 'j Secs'
echo ' '
echo 'Task success/failure change over last two runs:'
rc-stats 2 | grep -v '^20' - | pcregrep -v '^\s*$' | grep -v '==' | sortcnt | pcregrep -v '^\s+2'
# keep tabs on status
#echo ' '
#cd meta-i
#cp -p task.txt task.txt~
#$HOME/bin/rotate_log -d logs -b -r -f task.txt
#../bin/rc-task-status > task.txt
#diff task.txt~ task.txt
#cd ..
# see how slow the usual suspects are
echo ' '
bin/rc-timings | sort -r -n > meta-i/timings.txt
head -10 meta-i/timings.txt
echo ' '
echo '--'
echo 'Excessive line count in timings (if any)'
wc -l bench/moar/*err | grep -v '^ *[0-4] ' | grep -v total
echo '--'
# combine task headers for easy grep
$HOME/bin/grep-paragraph -H '#u# http' [0-Z]/* | $HOME/bin/grep-paragraph -v ReadMe.md - > meta-i/headers.txt
# leaderboard
echo ' '
head -20 bench/moar/Rosetta_Code_Rank_languages_by_popularity-1.out | $HOME/bin/drop -4
# non-ascii usage
echo ' '
mv meta-i/non-ascii.txt meta-i/non-ascii.txt~
bin/rc-non-ascii [0-Z]/* > meta-i/non-ascii.txt
diff meta-i/non-ascii.txt~ meta-i/non-ascii.txt
# extract list of citations
bin/rc-oeis > meta-i/OEIS.txt
# see any further 'srand drift'? (compare meta and meta-i versions; this is not on Mac-Pro)
echo ' '
git pull
grep -v '^20' meta*/srand-drift.txt | $HOME/bin/sortcnt | cut -c1-75
# latest Rakudo commits
echo ' '
cd $HOME/.rakubrew/versions/moar-blead
git log | head -100