Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I'd be wary of using a void context in each of those benchmarks. Perl has been known to "optimise" these.
    • It seems to me that if void context was having an effect, the rates would be much higher than on the order of 5,000 iterations/sec. The benchmark could be more realistic, but it doesn’t seem fatally flawed as a mere rule of thumb measurement.

    • duplicating the tests with "say $NULL ( );" wrapped around formerly void context (going to /dev/null of course) and adding "use warnings;", I do see a "useless in void" warning for the first test, but the change in times with say instead of void context is minimal or nil.
      # I had a sig when sigs were cool
      use Sig;