ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/eg/bench
(Generate patch)

Comparing Coro/eg/bench (file contents):
Revision 1.6 by root, Sat Jul 21 18:21:45 2001 UTC vs.
Revision 1.7 by root, Sat Jul 21 19:53:29 2001 UTC

8use Coro; 8use Coro;
9use Benchmark; 9use Benchmark;
10 10
11$a = bless {}, main::; 11$a = bless {}, main::;
12 12
13
14sub a {
15}
16
17sub b { 13sub b {
18 my ($self) = shift; 14 my ($self) = shift;
19 my $num = shift; 15 $self->{b} = shift if @_;
20 return $num+1; 16 $self->{b};
21} 17}
22 18
23$b = async { 19$b = async {
24 # do a little unrolling... 20 # do a little unrolling...
25 while() { 21 while() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines