Skip to content

Commit

Permalink
Convert sorear++'s concat suggestion into a real test
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Broadwell committed Dec 3, 2012
1 parent 8bef0a2 commit 361a917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
* Hot list
+ Investigate sorear rakudo concat performance question:
- $acc ~= ($x ~ $y) where $x and $y are loop-invariant but not "constant"s
* Features
+ Documentation
- WIP: manpage/usage
Expand Down
6 changes: 6 additions & 0 deletions timeall
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ my %TESTS = (
perl6 => 'my $s = ""; for (1 .. 100000) { $s ~= "x" }',
nqp => undef,
},
{
name => 'for_concat_2_1e5',
perl5 => 'my $x = "a"; my $y = ""; for (1 .. 100000) { $y .= ($x . $x) }',
perl6 => 'my $x = "a"; my $y = ""; for (1 .. 100000) { $y ~= ($x ~ $x) }',
nqp => undef,
},
{
name => 'for_push_1e3',
perl5 => 'my @a; for (1 .. 1000) { push @a, 1 }',
Expand Down

0 comments on commit 361a917

Please sign in to comment.