Perl-Sensitive Sunglasses | |
PerlMonks |
Re^7: "exists $hash{key}" is slower than "$hash{key}"by swl (Parson) |
on Jan 08, 2020 at 23:50 UTC ( [id://11111212]=note: print w/replies, xml ) | Need Help?? |
Yes, the lexical variables are part of the absolute timings. However, it's the relative timings that are of interest in this case as the point of the exercise was to assess the difference between exists $h{$k} or $h{$k}. If all other components are held constant then the timing differences should be due to the use of either of the two idioms (noting that the benchmarks need to be updated given dave_the_m's comments in 341121).
In Section
Meditations
|
|