Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Perl 5 and PIR versions of itmark
  • Loading branch information
sorear committed Oct 30, 2010
1 parent 08e051c commit eb2e899
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perf/itmark.p5
@@ -0,0 +1,7 @@
my @arr;
my $i = 0;
while ($i < 10000) { push @arr, $i; $i++ }
for my $x (@arr) {
for my $y (@arr) {
}
}
19 changes: 19 additions & 0 deletions perf/itmark.pir
@@ -0,0 +1,19 @@
.sub 'main' :main
$P0 = new 'ResizablePMCArray'
$I0 = 0
l1:
push $P0, $I0
inc $I0
unless $I0 == 10000 goto l1

$P1 = iter $P0
l2:
$P2 = shift $P1
$P3 = iter $P0
l3:
$P4 = shift $P3
if $P3 goto l3
if $P1 goto l2

.return()
.end

0 comments on commit eb2e899

Please sign in to comment.