-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrc-moar-srand
More file actions
executable file
·201 lines (191 loc) · 6.09 KB
/
rc-moar-srand
File metadata and controls
executable file
·201 lines (191 loc) · 6.09 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#!/bin/sh
## 2021-03-01 another run at 'srand' issues, what fun...
# On March 1st/2nd, fixed the output so all tests would pass.
#
# The problems with 'srand' that would be nice to fix: (ordered by # of tasks affected)
#
# 122 global changes that make all tasks containing rand/pick/roll change
# Rare, maybe necessary, but an extra-big headache when it happens.
#
# ~50 potentially unstable, output varies from 'previous-day' builds of Raku
# 2021-03-03 0 failed (with v2021.02.1-27-g22ea9d903)
# 2021-03-04 0 failed
# 2021-03-04 1 failed
# 2021-03-05 4 failed
# 2021-03-06 44 failed
# 2021-03-07 45 failed (Mandelbrot-2 intermittant?)
# 2021-03-08 46 failed (Julia_set/Jump_anywhere/Mandelbrot-2: intermittent failures?)
# 2021-03-10 46 failed (100_prisoners output now differs batch/terminal)
# 2021-03-29 47 failed (Rock-paper-scissors)
# 2021-03-30 48 failed (Set_puzzle)
# 2021-03-31 51 failed (Verify_distribution_uniformity_Naive Probabilistic_choice Penney%27s_game)
# 2021-04-01 53 failed (100_prisoners, Elliptic_Curve_Digital_Signature_Algorithm)
# 2021-04-xx 55 failed (Parallel_calculations-2, Langton%27s_ant)
# 2021-04-10 57 failed (Pick_random_element, Write_language_name_in_3D_ASCII)
# 2021-04-14 58 failed (Constrained_random_points_on_a_circle)
#
# 9 varying results, batch vs terminal [stats for terminal]
# 2021-03-03 0 failed
# 2021-03-04 0 failed
# 2021-03-05 0 failed
# 2021-03-06 5 failed
# 2021-03-31 7 failed
# 2021-04-01 8 failed
#
# 8 never-stable/flappers (continuously differ from run to run within a given build)
#
# ? varying results between OS/hardware ?
# Differences even with-in same OS
# BUT...
# One OS (El Capitan) on two hosts yields two different results (Brownian_tree: constant vs never-the-same)
# [but not tested on exact same release...]
# While an independent OS (Ubuntu 19) gives never-the-same results for same task
#
# NB: Mandelbrot_set-2 has no 'srand', still varies sometimes (basically works, just tiny differences)
# 2021-05-10
# give up for now, results not changing and not behaving when launched via cron
#exit
source $HOME/.profile
cd $HOME/perl6/Rosetta-Code
rakubrew switch moar-blead
bin/rc-moar-single H/Hello_world_Text
rm -f bench/moar/*
# results never stable
#bin/rc-moar-single \
#B/Brownian_tree \
#M/Maze_generation \
#M/Maze_solving \
# the next 4 may partly work (graph, but not table) [nope, now all failing]
#P/Percolation_Bond_percolation \
#P/Percolation_Site_percolation \
#P/Percolation_Mean_cluster_density \
#P/Percolation_Mean_run_density \
# failing as of 2021-03-05 (at least part of the time) with new Raku build v2021.02.1-29-gaffdd0583
bin/rc-moar-single \
A/Average_loop_length \
M/Markov_chain_text_generator \
P/Perceptron \
B/Barnsley_fern \
#P/Palindromic_dates \ # skip testing, known to be slightly skeezy
# failing from 2021-03-06 forward (at least part of the time)
bin/rc-moar-single \
0/100_prisoners \
A/ASCII_art_diagram_converter \
A/AVL_tree \
B/Best_shuffle \
B/Bioinformatics_Sequence_mutation \
B/Bioinformatics_Subsequence \
B/Birthday_problem \
C/Card_shuffles \
C/Chaos_game \
C/Cistercian_numerals \
C/Closures_Value_capture \
C/Constrained_random_points_on_a_circle \
C/Create_an_HTML_table \
D/Dutch_national_flag_problem \
E/Elliptic_Curve_Digital_Signature_Algorithm \
E/Evolutionary_algorithm \
F/Forest_fire \
G/Galton_box_animation \
G/Generate_random_chess_position \
G/Greatest_element_of_a_list \
J/Julia_set \
K/K-d_tree \
K/Knight%27s_tour \
K/Knuth%27s_algorithm_S \
K/Knuth_shuffle \
L/Langton%27s_ant \
M/Mandelbrot_set-2 \
M/Monte_Carlo_methods \
O/One_of_n_lines_in_a_file \
O/Order_two_numerical_lists \
P/Parallel_calculations-2 \
P/Particle_Swarm_Optimization \
P/Pattern_matching \
P/Penney%27s_game \
P/Pentomino_tiling \
P/Percolation_Site_percolation \
P/Permutations_Rank_of_a_permutation \
P/Pick_random_element \
P/Probabilistic_choice \
R/RPG_Attributes_Generator \
R/Random_Latin_Squares \
R/Rock-paper-scissors \
S/Set_puzzle \
S/Simulated_annealing \
S/Snake_And_Ladder \
S/Statistics_Basic \
S/Statistics_Normal_distribution \
S/Strip_control_codes_and_extended_characters_from_a_string \
T/Three_word_location \
T/Two_bullet_roulette \
U/Unbias_a_random_generator \
V/Verify_distribution_uniformity_Naive \
V/Voronoi_diagram \
W/Word_search \
W/Write_language_name_in_3D_ASCII \
# working for now (but had failed at points prior to 2021-03-02)
bin/rc-moar-single \
B/Bitmap_PPM_conversion_through_a_pipe \
F/Factorial_base_numbers_indexing_permutations_of_a_collection \
L/Loops_Break \
L/Loops_Nested \
M/Mind_boggling_card_trick \
M/Modified_random_distribution \
P/Percentage_difference_between_images \
P/Pig_the_dice_game_Player \
S/Seven-sided_dice_from_five-sided_dice \
# have never failed (and why not?)
bin/rc-moar-single \
0/15_Puzzle_Game \
0/2048 \
0/21_Game \
0/24_game \
A/Amb-2 \
A/Amb-3 \
A/Atomic_updates \
B/Balanced_brackets \
B/Bulls_and_cows \
B/Bulls_and_cows_Player \
C/Closest-pair_problem \
C/Create_a_two-dimensional_array_at_runtime \
D/Deal_cards_for_FreeCell \
D/Dining_philosophers \
E/Enforced_immutability \
F/Flipping_bits_game \
F/Function_frequency \
G/Generate_Chess960_starting_position \
G/Geometric_algebra \
G/Go_Fish \
G/Greed \
G/Guess_the_number \
G/Guess_the_number_With_feedback \
G/Guess_the_number_With_feedback_player \
I/Index_finite_lists_of_positive_integers-1 \
I/Index_finite_lists_of_positive_integers-2 \
J/Jump_anywhere \
J/Just_in_time_processing_on_a_character_stream \
K/K-means%2B%2B_clustering \
K/Knuth%27s_power_tree \
L/Last_letter-first_letter \
M/Magic_8-Ball \
M/Mastermind \
M/Miller-Rabin_primality_test \
M/Minesweeper_game \
M/Monty_Hall_problem \
P/Password_generator \
P/Password_generator-2 \
P/Pig_the_dice_game \
P/Playing_cards \
P/Price_list_behind_API \
P/Pseudorandom_Number_Generator_Image \
Q/Quickselect_algorithm \
R/Random_numbers \
R/Rendezvous \
R/Repeat \
S/Semiprime-1 \
S/Spoof_game \
S/Substitution_Cipher \
T/Terminal_control_Positional_read \
T/Tic-tac-toe \
bin/rc-stats