in reply to Unexpected OO accessor benchmarks
Am I missing something, or is that just plain weird?
Yes, you are. Try adding this to your script
and you will see this:use Data::Dumper; print Dumper { normal => $self->a(), optimized => $self->b(), direct => $self->c(), };
Essentially you are benchmarking integers :)$VAR1 = { 'direct' => 123, 'normal' => 123, 'optimized' => 123 };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unexpected OO accessor benchmarks
by Fletch (Bishop) on Feb 09, 2007 at 20:10 UTC | |
by cLive ;-) (Prior) on Feb 09, 2007 at 20:23 UTC | |
by Fletch (Bishop) on Feb 09, 2007 at 20:42 UTC | |
by cLive ;-) (Prior) on Feb 10, 2007 at 00:55 UTC | |
by eric256 (Parson) on Feb 10, 2007 at 02:29 UTC |