Skip to content

Commit e00a844

Browse files
committed
Set larger minimum scales to avoid noise at left of plots when compile time is ignored, potentially preventing nonsense performance ratios
1 parent 2b06b5b commit e00a844

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

microbenchmarks.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,28 @@
174174
},
175175
{
176176
name => 'visit_2d_indices_while',
177-
scale => 1,
177+
scale => 1 << 3,
178178
perl5 => 'my $i = 0; while ($i < SCALE) { my $j = 0; while ($j < SCALE) { $i + $j; $j++ }; $i++ }',
179179
perl6 => 'my $i = 0; while ($i < SCALE) { my $j = 0; while ($j < SCALE) { $i + $j; $j++ }; $i++ }',
180180
nqp => 'my $i := 0; while ($i < SCALE) { my $j := 0; while ($j < SCALE) { $i + $j; $j := $j + 1 }; $i := $j + 1 }',
181181
},
182182
{
183183
name => 'visit_2d_indices_loop',
184-
scale => 1,
184+
scale => 1 << 3,
185185
perl5 => 'for (my $i = 0; $i < SCALE; $i++) { for (my $j = 0; $j < SCALE; $j++) { $i + $j } }',
186186
perl6 => 'loop (my $i = 0; $i < SCALE; $i++) { loop (my $j = 0; $j < SCALE; $j++) { $i + $j } }',
187187
nqp => undef,
188188
},
189189
{
190190
name => 'visit_2d_indices_for',
191-
scale => 1,
191+
scale => 1 << 3,
192192
perl5 => 'for my $i (0 .. (SCALE - 1)) { for my $j (0 .. (SCALE - 1)) { $i + $j } }',
193193
perl6 => 'for ^SCALE -> $i { for ^SCALE -> $j { $i + $j } }',
194194
nqp => undef,
195195
},
196196
{
197197
name => 'visit_2d_indices_cross',
198-
scale => 1,
198+
scale => 1 << 3,
199199
perl5 => undef,
200200
perl6 => 'for ^SCALE X ^SCALE -> $i, $j { $i + $j }',
201201
nqp => undef,

minibenchmarks.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
name => 'rc-forest-fire',
44
skip => [qw( niecza.nqp p6.pl p6.js_v8 )],
5+
scale => 1 << 3,
56
x_label => 'Frames per Run',
67
y_label => 'Frames per Second',
78
perl5 => [qw( BENCH/perl5/rc-forest-fire 16 16 SCALE )],

0 commit comments

Comments
 (0)