The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!/usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use autodie qw(binmode);

use constant N => 1000000;

# Run an autodie wrapped sub many times in what's essentially a no-op.
# This should give us an idea of autodie's overhead.

for (1..N) {
    binmode(STDOUT);
}