Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
332 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.7.0 | ||
4.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright (C) 2010-2012, Parrot Foundation. | ||
|
||
=head1 NAME | ||
|
||
examples/benchmarks/stress_strings1.pir - comparison with stress_stringsu.pir | ||
|
||
=head1 SYNOPSIS | ||
|
||
% time ./parrot examples/benchmarks/stress_strings1.pir | ||
% time ./parrot examples/benchmarks/stress_stringsu.pir | ||
|
||
=head1 DESCRIPTION | ||
|
||
Create non-encoded strings, running through the imcc optimizer. | ||
Some of the strings are long-lived, most of them are short lived. | ||
|
||
=cut | ||
|
||
.sub 'main' :main | ||
.local pmc rsa # array of long lived strings. | ||
.local pmc args | ||
.local int i | ||
|
||
rsa = new ['ResizableStringArray'] | ||
args = new ['ResizablePMCArray'] | ||
i = 0 | ||
push args, i | ||
loop: | ||
$S0 = "c" | ||
args[0] = i | ||
sprintf $S1, "%d", args | ||
$S2 = concat $S0, $S1 | ||
$I0 = i % 10 # every 10th string is longlived | ||
if $I0 goto inc_i | ||
push rsa, $S2 | ||
inc_i: | ||
inc i | ||
if i < 10000000 goto loop | ||
|
||
.end | ||
|
||
|
||
# Local Variables: | ||
# mode: pir | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4 ft=pir: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright (C) 2010-2012, Parrot Foundation. | ||
|
||
=head1 NAME | ||
|
||
examples/benchmarks/stress_stringsu.pir - GC unicode strings stress-testing | ||
|
||
=head1 SYNOPSIS | ||
|
||
% time ./parrot examples/benchmarks/stress_stringsu.pir | ||
|
||
=head1 DESCRIPTION | ||
|
||
Create encoded strings, running through the imcc optimizer, which reencodes the strings. | ||
Some of the strings are long-lived, most of them are short lived. | ||
|
||
Main purpose - test encoding issues and imcc performance. [GH #873] | ||
|
||
=cut | ||
|
||
.sub 'main' :main | ||
.local pmc rsa # array of long lived strings. | ||
.local pmc args | ||
.local int i | ||
|
||
rsa = new ['ResizableStringArray'] | ||
args = new ['ResizablePMCArray'] | ||
i = 0 | ||
push args, i | ||
loop: | ||
$S0 = utf8:"\x{a2}" | ||
args[0] = i | ||
sprintf $S1, "%d", args | ||
$S2 = concat $S0, $S1 | ||
$I0 = i % 10 # every 10th string is longlived | ||
if $I0 goto inc_i | ||
push rsa, $S2 | ||
inc_i: | ||
inc i | ||
if i < 10000000 goto loop | ||
|
||
.end | ||
|
||
|
||
# Local Variables: | ||
# mode: pir | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4 ft=pir: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.