Improve profiling script. Type "perl bench/profile.pl" and nytprof-$branch will be...
[gitmo/Class-MOP.git] / bench / foo.pl
CommitLineData
26b2e5ab 1#!perl
2# a moose using script for profiling
3# Usage: perl bench/profile.pl
4
5package Foo;
6use Moose;
7
8has aaa => (
9 is => 'rw',
10 isa => 'Str',
11);
12
13has bbb => (
14 is => 'rw',
15 isa => 'Str',
16);
17
18has ccc => (
19 is => 'rw',
20 isa => 'Str',
21);
22
23has ddd => (
24 is => 'rw',
25 isa => 'Str',
26);
27
28has eee => (
29 is => 'rw',
30 isa => 'Str',
31);
32
33__PACKAGE__->meta->make_immutable();
34
35
36package Bar;
37use Moose;
38
39extends 'Foo';
40
41has xaaa => (
42 is => 'rw',
43 isa => 'Str',
44);
45
46has xbbb => (
47 is => 'rw',
48 isa => 'Str',
49);
50
51has xccc => (
52 is => 'rw',
53 isa => 'Str',
54);
55
56has xddd => (
57 is => 'rw',
58 isa => 'Str',
59);
60
61has xeee => (
62 is => 'rw',
63 isa => 'Str',
64);
65
66__PACKAGE__->meta->make_immutable();